rjwats / esp8266-react

A framework for ESP8266 & ESP32 microcontrollers with a React UI
GNU Lesser General Public License v3.0
478 stars 147 forks source link

OTA update #3

Closed uncodead closed 5 years ago

uncodead commented 5 years ago

Hello,

What do i need to do to enable OTA update?

My page settings: enabled: true port: 8266 pass: esp-react

My platformio.ini: upload_flags = --port=8266 --auth=esp-react upload_port = 192.168.0.6 build_flags=

-D NO_GLOBAL_ARDUINOOTA

-D ENABLE_CORS

I get error: Error[1]: Begin Failed

rjwats commented 5 years ago

Your settings look OK, I'd check that your esp module had enough flash (1mb variants don't have enough for OTA and error with that message) and also consider the possibility of your computers firewall blocking the connection.

uncodead commented 5 years ago

Yes, i have avaliable memory. I have checked when the esp8266 starts this lines appears at Serial monitor:

Serial.println("Starting OTA Update Service");

But this one doesnt:

Serial.println("Starting");

I think that OTA service didnt start correctly

Em sex, 1 de mar de 2019 05:13, rjwats notifications@github.com escreveu:

Your settings look OK, I'd check that your esp module had enough flash (1mb variants don't have enough for OTA and error with that message) and also consider the possibility of your computers firewall blocking the connection.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rjwats/esp8266-react/issues/3#issuecomment-468581084, or mute the thread https://github.com/notifications/unsubscribe-auth/AALGVgeYPJh96cGbrU-S2KCQJiPBfilIks5vSOEngaJpZM4bYLyl .

rjwats commented 5 years ago

The line:

Serial.println("Starting");

Is in inside the on start callback, you should not expect to see this on startup - rather when the OTA process successfully begins.

What platform are you on (Windows (version) / Linux)? Have you tried disabling your firewall temporarily to rule that out?

rjwats commented 5 years ago

Love the brew project BTW, I had a similar project in mind... I'm using one of these to control my fermentation chamber at the moment:

https://github.com/rjwats/esp8266-react/tree/fermentation-chamber

uncodead commented 5 years ago

Nice! I'm doing a brew controller. I'll control a heat element with a ssr, weather pump with a relay, and persistent a brew receipe.

I'm using your framework to save time.

After weekend I'll try a OTA update without firewall.

Thank you so much

Em sex, 1 de mar de 2019 09:01, rjwats notifications@github.com escreveu:

Love the brew project BTW, I had a similar project in mind... I'm using one of these to control my fermentation chamber at the moment:

https://github.com/rjwats/esp8266-react/tree/fermentation-chamber

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rjwats/esp8266-react/issues/3#issuecomment-468642990, or mute the thread https://github.com/notifications/unsubscribe-auth/AALGVmUqLt1sBGLasgEneU3Xsxd5Epw4ks5vSRaSgaJpZM4bYLyl .

uncodead commented 5 years ago

Have you already tried BrewPiLess?

Em sex, 1 de mar de 2019 09:01, rjwats notifications@github.com escreveu:

Love the brew project BTW, I had a similar project in mind... I'm using one of these to control my fermentation chamber at the moment:

https://github.com/rjwats/esp8266-react/tree/fermentation-chamber

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rjwats/esp8266-react/issues/3#issuecomment-468642990, or mute the thread https://github.com/notifications/unsubscribe-auth/AALGVmUqLt1sBGLasgEneU3Xsxd5Epw4ks5vSRaSgaJpZM4bYLyl .

rjwats commented 5 years ago

I'd seen BrewPi before, that looks like a neat port to the ESP chip!

rjwats commented 5 years ago

I'm assuming this is resolved, please reopen if you still need help.