So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By yknivag
#74777 For several projects I have used tzapu's WiFiManager library to allow user configuration of the WiFi credentials and other user specific settings like mqtt keys etc. When I use that library I usually set an LED on when setup() begins and turn it off when WiFi is connected. That way the end user always knows if the device has got stuck in config mode (maybe because the WiFi has changed).

Recently I have been looking at https://iotappstory.com/ by Andreas Speiss and it seems a great way to manage deployment of code to remote devices. It too uses WiFiManager (albeit not tzapu's original library) but I cannot work out how to determine in my code whether or not the device is in config mode so I can light my LED.

Does anyone have any experience with IOTAppStory? Can it be done?
User avatar
By yknivag
#74792 Well it seems like it is possible by placing these two lines at the top of the setup() function:
Code: Select all  pinMode(D6, OUTPUT);
  digitalWrite(D6, HIGH);

and then this as the first piece after the line "Your Setup starts from here"
Code: Select all  if(IAS.isNetworkConnected()) {
    digitalWrite(D6, LOW);
  }

Hope that helps anyone else with the same issue.