atc1441 / E-Paper_Pricetags

GNU General Public License v3.0
219 stars 38 forks source link

Clarify save_settings #23

Open probonopd opened 3 years ago

probonopd commented 3 years ago

If one uses "Set base freq offset" and clicks on "save_settings", is this setting then automatically applied after a reboot of the ESP32 or does one need to click "get settings" in order to load it? I am asking because after a reboot the web page does not seem to have "remembered" the settings.

Also, does one have to cleick "Do sync" after a reboot or does it do the sync (using the settings) automatically?

atc1441 commented 3 years ago

The offset is saved with save_settings and will be used on reboot.

The get settings button will get the current settings, it is still missing to parse that answer and set it in the input fields to "remember" it. So on load of the .htm a one time request needs to be implemented that will request the current settings.

A sync is done every 500 periods, so on reboot it needs to be fired manualy to get a quick sync

kgarrels commented 3 years ago

could we foresee an option to do a sync after reboot?

atc1441 commented 3 years ago

It was there but i removed it for development. Its simple to add again :)

kgarrels commented 3 years ago

ups, sorry…

kai

Am 16.04.2021 um 14:50 schrieb atc1441 @.***>:

It was there but i removed it for development. Its simple to add again :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

atc1441 commented 3 years ago

You can set this value https://github.com/atc1441/E-Paper_Pricetags/blob/9d5d92b2e360d194a858258c493155ced9ee8d33/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/RFV3/mode_idle.h#L45

To 490 and it will resync on reboot :)

probonopd commented 3 years ago

Is there a reason why we don't do this by default?

atc1441 commented 3 years ago

Because if an activation is wanted to perform directly after reboot it can get problematic.

The displays already received an wakeup cmd then and will not listen to the activation cmd anymore.

Thats what i meant i removed it for development, it is "activated" again and the esp32 is running for a while it makes no difference anymore