Hello All,
I can't seem to get the GSM Shield libraries to work as outline here:-
I have an Arduino UNO and an official GSM Shield. All the examples I've tried seem to hang here : -
gsmAccess.begin(PINNUMBER) == GSM_READY
Even if debug mode is set it just hangs, no useful information is displayed.
I've create a serial relay to software serial (pins 2,3) to send AT commands via the serial monitor and it works fine. It just seems like the library isn't working for me.
I am using Linux based machine to program the UNO and I am on Version 1.8.16. The GSM version I am using is 1.0.6.
I am getting a few warnings when I try to compile
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
GSM3ShieldV1ModemVerification.cpp: In member function 'String GSM3ShieldV1ModemVerification::getIMEI()':
GSM3ShieldV1ModemVerification.cpp:64:20: warning: passing NULL to non-pointer argument 1 of 'String::String(int, unsigned char)' [-Wconversion-null]
String number(NULL);
GSM3ShieldV1ScanNetworks.cpp: In member function 'String GSM3ShieldV1ScanNetworks::getCurrentCarrier()':
GSM3ShieldV1ScanNetworks.cpp:66:21: warning: passing NULL to non-pointer argument 1 of 'String::String(int, unsigned char)' [-Wconversion-null]
return String(NULL);
GSM3ShieldV1ScanNetworks.cpp: In member function 'String GSM3ShieldV1ScanNetworks::getSignalStrength()':
GSM3ShieldV1ScanNetworks.cpp:85:21: warning: passing NULL to non-pointer argument 1 of 'String::String(int, unsigned char)' [-Wconversion-null]
return String(NULL);
Anyone have any ideas?
Thanks