Wiz-IO / platformio-quectel-examples

Examples for PlatformIO Quectel
29 stars 21 forks source link

APN connection in BG96 examples problem #10

Open MrXavierB opened 4 years ago

MrXavierB commented 4 years ago

Hi,

I saw in the Arduino/bg96/bg96_PubSubClient/src/main.cpp file at line 85:

dss.apn("gprs", "user", "pass");

This line is always returning me false. I checked in the file /arduino/libraries/bg96/Dss/src/Dss.cpp at line 139 the apn() function:

if (!handle) return false;

In my case with the BG96, this was always returning false. I had to call qapi_DSS_Get_Data_Srvc_Hndl before checking the state of handle before it would work. Could this be an issue or did I miss something?

Thank you again!

Wiz-IO commented 4 years ago

Hi maybe is my bug ( I cannot test all... alone ) dss.open(....) must be first to get handle

my (example) connection work without APN