'pyserial FastAPI. Empty Response b''
@app.get("/ATI/", tags=["Device Information"])
def display_identification_information():
serialconsole = serial.Serial("/dev/tty.usbserial-143130", 115200, timeout=5)
serialconsole.write(bytes("ATI\r\n", 'utf-8'))
serialconsole.read(32798)
msg = serialconsole.readline().decode("utf-8")
serialconsole.close()
return msg
I cant get the response, looks "empty" any idea ?
Response body Download ""
any idea ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
