This commit is contained in:
James 2024-04-26 11:29:51 +01:00
parent 52a62e0851
commit e5535e8ad3

View File

@ -124,6 +124,7 @@ void loop() {
while( millis()-start<10000 && (gotBasicInfo==false || gotCellInfo==false) ){ while( millis()-start<10000 && (gotBasicInfo==false || gotCellInfo==false) ){
// REQUEST BASIC INFO // REQUEST BASIC INFO
if(gotBasicInfo==false){ if(gotBasicInfo==false){
Serial.println("Request Basic Info");
delay(500); delay(500);
// header status command length data checksum footer // header status command length data checksum footer
// DD A5 03 00 FF FD 77 // DD A5 03 00 FF FD 77
@ -134,6 +135,7 @@ void loop() {
// REQUEST CELL INFO // REQUEST CELL INFO
if(gotCellInfo==false){ if(gotCellInfo==false){
Serial.println("Request Cell Info");
delay(500); delay(500);
// header status command length data checksum footer // header status command length data checksum footer
// DD A5 03 00 FF FD 77 // DD A5 03 00 FF FD 77
@ -142,6 +144,7 @@ void loop() {
delay(500); delay(500);
} }
} }
Serial.println("Disconnect");
pClient->disconnect(); pClient->disconnect();
} }
} }