You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the example code exactly as is (only pwd and ssid changed) on an ESP8266-01 everything works great.
But if I add one more button like in the code below the webbrowser never gets any web page back. I can still do REST calls ("blindly") to turn pins on and off but the webbrowser does not get any html web page data back what so ever.
// Set the title
rest.title("aREST UI Demo");
// Create button to control pin 5
rest.button(5);
rest.button(2); // ADDING THIS WILL MAKE WEB PAGE LOAD FAIL
// Init variables and expose them to REST API
temperature = 22;
humidity = 39.1;
rest.variable("temperature", &temperature);
rest.variable("humidity", &humidity);
// Labels
rest.label("temperature");
rest.label("humidity");
Interestingly though is that if I do have two buttons but comment out all labels everything works again, except the labels of course.
The text was updated successfully, but these errors were encountered:
MagnusThome
changed the title
Webpage won't load if one more rest.button() is added
Webpage won't load if one more rest.button() is added to example code
Feb 8, 2018
With any rest.label() included in the code the max number of rest.button() is one.
With no rest.label() included the max number of rest.button() is two
These being the only changes to the demo code apart from ssid and passwd.
If I run the example code exactly as is (only pwd and ssid changed) on an ESP8266-01 everything works great.
But if I add one more button like in the code below the webbrowser never gets any web page back. I can still do REST calls ("blindly") to turn pins on and off but the webbrowser does not get any html web page data back what so ever.
Interestingly though is that if I do have two buttons but comment out all labels everything works again, except the labels of course.
The text was updated successfully, but these errors were encountered: