faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
385 stars 303 forks source link

Need to check available status. #98

Open Columbo818 opened 6 years ago

Columbo818 commented 6 years ago

Is there a method to check if the modem is available? Should we use the underlying serial.available?

tomchy commented 6 years ago

I think it is better to send AT command to the modem. If you have something connected on other side it will respond with OK.