I have an ESP8266 running ESP_Easy_mega-20180524_normal_ESP8266_1024.bin.
The only thing it does is to set the PWM of one Pin according to a value that I send by MQTT. But it took me quite a while to figure that out....
Now, I have the problem, that the wifi connection is instable. RSSI is -82db.
As I use mqtt short interruptions are no issue and also the reaction of the device is not time critical. But sometimes, the Device just does not re-connect after having lost the connection.
What I did so far:
- Set up a Fallback Wifi (same credentials)
- Added a rule that I found in this forum
Code: Select all
on System#Boot do
Let,1,0 // set user variable to initial state of 0
EndOn
on Wifi#Disconnected do // if no wifi, wait 3 minutes
if [VAR#1]=0
timerSet,1,180
Let,1,1 // set user variable 1 to 1 to prevent re-set of var1 on each event.
endif
endon
on Wifi#Connected do // if wifi returns, cancel reboot
timerSet,1,0 // cancel timer
Let,1,0 // set user variable 1 to 0
endon
On Rules#Timer=1 do // if still no Wifi, reboot
reboot
endon
Now, I was wondering, if in ESPEasy 2.0 this could be improved, but due to space constraints, I cannot update OTA (even not with ESPEasy_2step_UploaderMega_1024.bin).
So, I would need a wired connection, which is not easy in this case.
Can someone tell me, if an update would improve the above mentioned issue?
Appart from the wired connection: I think I would loose all settings. Is there a way to backup them in 1.x and restore them in 2.x?
Best regards,
Hendrik
One remark on the Wiki::
So, I tried with the ESPEasy_2step_UploaderMega_1024.bin. But even for that, the Flash is too small. I found then in github, that ESPEasy_2step_UploaderMega_1024.bin only works with smaller releases than the "_normal_" that I have installed.2.0+ firmware on 1MB modules - Warning
If you are running the stock Mega edition firmware on 1MB modules, you will find that you can no longer load newer images because there's insufficient free space to upload the image (344kB as of 2.0.0.-Dev 9 edition). You can compile smaller images to solve this issue or use a small image that has been build just to upload newer images. So you would always have to use a two-step process to renew using OTA on 1MB modules. Using the uploader image as an in-between step, you can use images up to 604kB.
Only devices with 1Mb or more flash are supported.
To use OTA you need more then 1Mb of flash. (otherwise your device will get unreachable via wireless and you need to fix it via serial)
You lose all your config settings if you upgrade from an Rxxx version. (from before ESPEasy v2.0)
I think that a note on this in the wiki would make sense.