()
| 16 | |
| 17 | @api.route("/connection", methods=["GET"]) |
| 18 | def connectionState(): |
| 19 | pm = printerManager() |
| 20 | |
| 21 | state, port, baudrate = pm.getCurrentConnection() |
| 22 | current = { |
| 23 | "state": state, |
| 24 | "port": port, |
| 25 | "baudrate": baudrate |
| 26 | } |
| 27 | return jsonify({"current": current, "options": pm.getConnectionOptions()}) |
| 28 | |
| 29 | |
| 30 | @api.route("/connection", methods=["POST"]) |
nothing calls this directly
no test coverage detected