Skip to main content
2 of 2
added 139 characters in body
guyd
  • 1k
  • 2
  • 26
  • 62

ESP32, ArduinoOTA.h LittleFS.h and data file upload OTA

I'm having a sketch, that works perfectly fine - connects to WiFi, uploading files using Esp32 LittleFS data Upload using Arduino IDE (when still connected to my PC), and sketch updates via OTA (using ArduinoOTA.h library).

But when I try to Esp32 LittleFS data Upload when MCU is not connected to my PC, I get an error messages:

espota : /home/guy/snap/arduino/70/.arduino15/packages/esp32/hardware/esp32/1.0.6/tools/espota.py

[LITTLEFS] data   : /home/guy/Documents/Dropbox/Arduino/sketch_jul26a/data
[LITTLEFS] start  : 2686976
[LITTLEFS] size   : 1472
[LITTLEFS] page   : 256
[LITTLEFS] block  : 4096
/sketch_param.json
/sketch_param_32.json
/myIOT2_topics.json
/myIOT_param.json
/sketch_param_8266.json
[LITTLEFS] upload : /tmp/arduino_build_103180/sketch_jul26a.littlefs.bin
[LITTLEFS] IP     : 192.168.2.132

Sending invitation to 192.168.2.132 ..........
20:10:59 [ERROR]: No response from the ESP
LITTLEFS Upload failed!

Just to clarify:

A) sketch OTA works as expected (yes, I changed local USB to the remote one).

B) Tested on 2 different ESP32 MCU's, and failure is the same.

Question:

  1. Is it possible to OTA data files using ESP32, ArduinoOTA.h, LittleFS, ArduinoIDE ? (It works when using ESP8266).

Guy

guyd
  • 1k
  • 2
  • 26
  • 62