modem = GsmModem(port, 115200, smsReceivedCallbackFunc=handleSms)
modem.connect()
while True:
try:
print(str(modem.signalStrength))
except Exception as e:
print("Error: " + str(e))
modem.close()
We have a usb multimodem with 8 ports, on a windows 7. The problem we have is that sometimes the ports die, and we get SerialExceptions and TimeoutExceptions.
I want to know if you have any idea what is causing this. Also I would like to know if this is a correct way to wait for incoming sms. As an alternative to this:
```python
modem.rxThread.join(2**31) # Specify a (huge) timeout so that it essentially blocks indefinitely, but still receives CTRL+C interrupt signal
Thank you
Hi!, I have this code: