Author Topic: API documentation and changing default WiFi configuration  (Read 1948 times)

mvn

  • Newbie
  • *
  • Posts: 1
API documentation and changing default WiFi configuration
« on: January 30, 2016, 10:02:43 pm »
Are the Oak APIs documented anywhere?

I am looking, in particular, for how to change the default SSID.  I can WiFi.disconnect() and then WiFi.begin() with a new SSID, but this does not change the SSID selected when initially configuring the board.

Thanks

/Mike

touliloup

  • Newbie
  • *
  • Posts: 14
Re: API documentation and changing default WiFi configuration
« Reply #1 on: January 31, 2016, 08:15:19 am »
Quote
Oak.rebootToConfig() will get you into WiFi Config setup mode.
-If you can't boot into that then pull Pin 10 to GND and it power cycle and you will boot to that.
-Next release will have an option to boot there automatically if there the WiFi can't connect.
-It will also boot to a safe mode if there is a timeout (do to a while loop that doesn't call Particle.process()) or a exception (memory overflow, etc) - in that mode it will just wait for an update. If you power cycle it will go back to the user program.

https://github.com/digistump/OakCore/blob/2eda1456bc64966b3a3a58aee19ae74aa8b61eb7/README.md