I'm using the library on an EPS32S3 with a SIMCOM7600G-H module using PlatformIO
framework-arduinoespressif32 @ 3.2.0
framework-arduinoespressif32-libs @ 5.4.0+sha.2f7dcd862a
OTAdrive @ 1.1.34
The LTE connection is good, I can send MQTT data and ping websites.
I've added the clients as per the example
TinyGsmClient client(modem,0);
TinyGsmClient gsm_otadrive_client(modem, 1);
And this is the relevant loop
if (OTADRIVE.timeTick(60)) // 30 seconds for testing
{
// retrive firmware info from OTAdrive server
auto inf = OTADRIVE.updateFirmwareInfo(gsm_otadrive_client);
// update firmware if newer available
if (inf.available)
{
ESP_LOGI(LTEOTA_TAG,"New version available, %dBytes, %s", inf.size, inf.version.c_str());
OTADRIVE.updateFirmware(gsm_otadrive_client);
}
else
{
ESP_LOGI(LTEOTA_TAG,"No newer version");
}
}
I get the following errors:
E (684754) ARDUINO: connect to otadrive.com faild
I (685342) OTA: New version available, 1000800Bytes, 0.0.11
E (686661) ARDUINO: connect to otadrive.com faild
Sometimes I get this
I (1055103) OTA: New version available, 1000800Bytes, 0.0.11
E (1056355) ARDUINO: Update.begin failed! (No Error)
E (1056356) ARDUINO: premature end: res:0, pos:0/1000800
E (1056356) ARDUINO: Update failed
In the latest events console, I see this
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_HasCheckedNewVersionExists: FOTA_HasCheckedNewVersionExists
deviceID=> FOTA_HasCheckedNewVersionExists: FOTA_HasCheckedNewVersionExists
deviceID=> FOTA_NoFirmware: FOTA request failed. No firmware has been set for the group
Any ideas that I can try?
I'm using the library on an EPS32S3 with a SIMCOM7600G-H module using PlatformIO
framework-arduinoespressif32 @ 3.2.0
framework-arduinoespressif32-libs @ 5.4.0+sha.2f7dcd862a
OTAdrive @ 1.1.34
The LTE connection is good, I can send MQTT data and ping websites.
I've added the clients as per the example
TinyGsmClient client(modem,0);
TinyGsmClient gsm_otadrive_client(modem, 1);
And this is the relevant loop
if (OTADRIVE.timeTick(60)) // 30 seconds for testing
{
// retrive firmware info from OTAdrive server
auto inf = OTADRIVE.updateFirmwareInfo(gsm_otadrive_client);
I get the following errors:
E (684754) ARDUINO: connect to otadrive.com faild
I (685342) OTA: New version available, 1000800Bytes, 0.0.11
E (686661) ARDUINO: connect to otadrive.com faild
Sometimes I get this
I (1055103) OTA: New version available, 1000800Bytes, 0.0.11
E (1056355) ARDUINO: Update.begin failed! (No Error)
E (1056356) ARDUINO: premature end: res:0, pos:0/1000800
E (1056356) ARDUINO: Update failed
In the latest events console, I see this
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_Start: Download firmware started
deviceID=> FOTA_HasCheckedNewVersionExists: FOTA_HasCheckedNewVersionExists
deviceID=> FOTA_HasCheckedNewVersionExists: FOTA_HasCheckedNewVersionExists
deviceID=> FOTA_NoFirmware: FOTA request failed. No firmware has been set for the group
Any ideas that I can try?