You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HologramSIMCOM::_connectNetwork() fails to get an IP after connecting to the network AT+CIFSR. This seems to be cause by CIFSR needing addition time even after sending its "OK".
This can be "hack" fixed by adding a delay(5000) after the CIICR and before the CIFSR. A more elegant solution might me to call ATs until they come back OK.
I am happy to submit a pull request but wanted to see if anyone had any suggestions first
I am using the cheepest $10 modules from amazon. This could have something to do with it
If anyone wants to implement this hack. Edit the library file HologramSIMCOM.cpp. With the understanding that adding delays like this to fix an issue is just bad coding.
// Bring up wireless connection
if(_writeCommand("AT+CIICR\r\n", 85, "OK", "ERROR") != 2) {
Serial.println(F("ERROR: failed at +CIICR"));
break;
}
delay(5000);
// Get local IP address
if(_writeCommand("AT+CIFSR\r\n", 2, ".", "ERROR") != 2) {
Serial.println(F("ERROR : failed at +CIFSR"));
break;
}
The text was updated successfully, but these errors were encountered:
HologramSIMCOM::_connectNetwork() fails to get an IP after connecting to the network AT+CIFSR. This seems to be cause by CIFSR needing addition time even after sending its "OK".
This can be "hack" fixed by adding a delay(5000) after the CIICR and before the CIFSR. A more elegant solution might me to call ATs until they come back OK.
I am happy to submit a pull request but wanted to see if anyone had any suggestions first
I am using the cheepest $10 modules from amazon. This could have something to do with it
If anyone wants to implement this hack. Edit the library file HologramSIMCOM.cpp. With the understanding that adding delays like this to fix an issue is just bad coding.
The text was updated successfully, but these errors were encountered: