epson-tm-t20iii #1

Merged
n07070 merged 34 commits from epson-tm-t20iii into master 2022-05-04 11:57:09 +02:00
Showing only changes of commit 35fc990bc0 - Show all commits

View File

@ -11,6 +11,7 @@ from flask import Flask, request # Used for the web framework
from printer import Printer # The wrapper for the printer class from printer import Printer # The wrapper for the printer class
import toml # Used for the config file parsing import toml # Used for the config file parsing
import pprint import pprint
import time
# Load the configuration file # Load the configuration file
try: try:
@ -67,4 +68,5 @@ def api_index():
def api_print_sms(): def api_print_sms():
texte = request.args.get("txt",type=str) texte = request.args.get("txt",type=str)
app.logger.debug("Printing : " + texte) app.logger.debug("Printing : " + texte)
time.sleep(10)
return printer.print_sms(texte) return printer.print_sms(texte)