hologram-io / hologram-python

Hologram device-side Python SDK - Send messages to the cloud in just 3 lines of code!
https://hologram.io/
MIT License
88 stars 46 forks source link

Not all carriers support PDP context ID 1 for data - add others #117

Open holopanda opened 1 year ago

holopanda commented 1 year ago

The default chat script configures APN context ID 1 only and passes that to the dialing command. Not all carriers support data on context ID 1:

See

https://github.com/hologram-io/hologram-python/blob/develop/Hologram/Network/Modem/chatscripts/default-script#L18-L19

OK AT+CGDCONT=1,"IP","hologram"
OK ATDT*99***1#

It would be ideal to also support other context IDs, e.g. 3.