-
My goal is: I want to make OTA from web server. I successfully commit update from OTA http server (using new sketch), but once I moved the exact configuration to my code, the OTA is not working.
-
My actions are: Indeed, I put many libraries to my code, but so far is fine.
- origin: GitHub - mongoose-os-libs/boards: Board configuration defs
- origin: GitHub - mongoose-os-libs/ca-bundle
- origin: GitHub - mongoose-os-libs/rpc-service-config
- origin: GitHub - mongoose-os-libs/rpc-service-fs
- origin: GitHub - mongoose-os-libs/rpc-uart
- origin: GitHub - mongoose-os-libs/http-server
- origin: GitHub - mongoose-os-libs/ota-common: OTA common bits
- origin: GitHub - mongoose-os-libs/ota-http-client
- origin: GitHub - mongoose-os-libs/fstab: Storage device and filesystem init table
- origin: GitHub - mongoose-os-libs/vfs-fs-lfs: Mongoose OS support for littlefs
- origin: GitHub - mongoose-os-libs/sntp
- origin: GitHub - mongoose-os-libs/pwm
- origin: GitHub - mongoose-os-libs/dns-sd: DNS-SD/Bonjour protocol support library
- origin: GitHub - mongoose-os-libs/i2c
- origin: GitHub - mongoose-os-libs/arduino-wire
- origin: GitHub - mongoose-os-libs/ethernet: Ethernet support
- origin: GitHub - mongoose-os-libs/bme280
and in config schema:
- [“update.enable_post”, “b”, true, {title : “Enable POST updates”}]
I thought my javascript is fine, since I have tested it with simpler code and OTA was working.
I was using /update
path.
-
The result I see is: When I updated through http OTA, I got the connection is reset ( (ERR_CONNECTION_RESET) and failed to update.
-
My expectation & question is: I don’t know what to do, maybe the library or something in the code is the culprit. I also set some softwares timer in the beginning and some rpc handlers.