Adafruit_FONA icon indicating copy to clipboard operation
Adafruit_FONA copied to clipboard

Dynamically setting GPRS APN Settings

Open WillJonesMagic opened this issue 9 years ago • 5 comments
trafficstars

APN Settings appear to need to be burned into the code at runtime and don't support being set from variables or values stored in the EEPROM. I need to be able to send an SMS containing the APN settings to the device and have it store the values and have them persist through a reboot. There's quite possibly something obvious I'm missing here but I've not been able to solve this one.

WillJonesMagic avatar Jan 12 '16 17:01 WillJonesMagic

@WillJonesMagic I have a problem like yours in my project, so I made a modification in the library and now (actually as soon as they approve it) you can pass the APN settings both by burning it into code or by calling a function, it's on my pull request #50.

This way you can send an SMS, read it, parse it in code, and pass it to FONA.

feinstein avatar Jan 22 '16 05:01 feinstein

@feinstein I tried your code, but the GSMLoc function appears to be broken. I get failure code 601 whenever I try to query the GSMLoc. GPS works fine though.

WillJonesMagic avatar Feb 02 '16 15:02 WillJonesMagic

@WillJonesMagic I think I know what the problem is. Will fix this and let you know.

feinstein avatar Feb 02 '16 20:02 feinstein

@WillJonesMagic I have fixed the code and tested it here, can you confirm if it's working for you?

feinstein avatar Feb 03 '16 00:02 feinstein

@feinstein Perfect! Thank you!

WillJonesMagic avatar Feb 03 '16 12:02 WillJonesMagic