|
Post by rrrrpa on Feb 21, 2024 4:17:33 GMT
SIM7000A LTE_Demo does not print anything for serial Menu input case "1" (modem.getNetworkInfo()) when BOTLETICS_MODEM_DEBUG is turned off. The root of the problem is in Library module Botletics_modem::getReply(FStringPtr send, uint16_t timeout).
uint8_t Botletics_modem::getReply(FStringPtr send, uint16_t timeout) {
//Serial.println(F("modem::getReply case 2"));
flushInput();
DEBUG_PRINT(F("\t---> ")); DEBUG_PRINTLN(send);
//Serial.print(F("modem::getReply case 2 send = ")); //Serial.println(send);
mySerial->println(send);
uint8_t l = readline(timeout);
DEBUG_PRINT (F("\t<--- ")); DEBUG_PRINTLN(replybuffer);
return l;
}
|
|
|
Post by rrrrpa on Mar 6, 2024 18:19:52 GMT
The real solution is for Botletics to update the library. The quick solution is to add the following before the return:
if (strstr(replybuffer, "+CPSI") != 0) {Serial.print(F("Sys Info --->")); Serial.println(replybuffer);} if (strstr(replybuffer, "+COPS") != 0) {Serial.print(F("Operator --->")); Serial.println(replybuffer);}
|
|