stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

FR: offer the setup of APN username and APN password via configfile #194

Open bogi0704 opened 6 months ago

bogi0704 commented 6 months ago

I need to use a sim card from a telecom-provider that requires the setup of a username and password for their APN. The config file for the Freematics ONE+ does not offer setting that up. It just offers to setup the APN adress. I have tried to set the credentials manually in the FreematicsNetwork.cpp file, but that did not work. These are the lines that I have tried it with:

line 995:

//sendCommand("AT+CSOCKAUTH=1,1,\"APN_PASSWORD\",\"APN_USERNAME\"\r");

line 1280:

//sendCommand("AT+CSOCKAUTH=1,1,\"APN_PASSWORD\",\"APN_USERNAME\"\r");

I am using the Freematics Builder and ticked the option to rebuild the libraries and core, but that did not work.

That is why I am asking for this feature. It should be possible to set those settings via the configfile. Thanks.