B4R Question rESPUI: rebooting MCU at web-page refresh

peacemaker

Expert
Licensed User
Longtime User
HI, All and @candide

I have tried now rESPUI with ESP32C3 (SDK v3.0.4).
Prepared 4 tabs interface, 25 views totally, 8 views with autorefreshing content.
StackBufferSize does not influence at all.

If to refresh the web-page in browser and updating the views by "UI.updateLabel" - MCU is self-restarted:
Restarted reason: ESP_RST_PANIC

It's occured if to try to pass my sensors info the interface, into the labels. From the variables that are re-calculated in other subs.
If to comment updating - no errors.

And how to use this lib ?
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
SOLVED:
B4X:
Sub timUpdate_Tick
    'Log("loop update")
    UI.updateLabel(labStatus, others.SelfStatus)
    Delay(1)
    UI.updateLabel(timeTime, others.Date_Time)
    Delay(1)
    UI.updateLabel(mainTemp, NumberFormat(esp_bme280.TEMPERATURE, 1, 1))
    Delay(1)
    UI.updateLabel(mainPressure, NumberFormat(esp_bme280.PRESSURE, 1, 1))
    Delay(1)
    UI.updateLabel(mainHumidity, NumberFormat(esp_bme280.HUMIDITY, 1, 1))
    Delay(1)
    UI.updateLabel(mainSpeed, NumberFormat(orion_meteo.WindSpeedValue, 1, 2))
    Delay(1)
    UI.updateLabel(mainRain, NumberFormat(orion_meteo.RainValue, 1, 3))
    Delay(1)
    UI.updateLabel(mainWind, NumberFormat(orion_meteo.WindAzimuth, 1, 1))
    Delay(1)
End Sub
 
  • Like
Reactions: byz
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Not solved...
 
Upvote 0
Top