Home › Forums › Mayfly Data Logger › XBee and Hologram LTE: issues connecting to internet › Reply To: XBee and Hologram LTE: issues connecting to internet
2020-12-22 at 4:20 PM
#14959
Just a further update on above. The IoT provider thinks that the UBlox needs to be told to register.
He suggested using the AT commands:
AT+CPIN?
AT+CREG?
AT+COPS=?
Am I correct in assuming that the way to do this would be via the code below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
gsmModem.sendAT(GF("CPIN?")); gsmModem.waitResponse(180000L, GF("S"), GF("ERROR")); while (Serial1.available()) { Serial.println(Serial1.readStringUntil('\r')); } gsmModem.sendAT(GF("CREG?")); gsmModem.waitResponse(180000L, GF("S"), GF("ERROR")); while (Serial1.available()) { Serial.println(Serial1.readStringUntil('\r')); } gsmModem.sendAT(GF("COPS=?")); gsmModem.waitResponse(180000L, GF("S"), GF("ERROR")); while (Serial1.available()) { Serial.println(Serial1.readStringUntil('\r')); } |