Skip to content

Commit

Permalink
added example setApCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
r-downing committed Nov 11, 2017
1 parent 08babbb commit 678086c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/spiffs_rest_api/spiffs_rest_api.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ void setup() {

//allows serving of files from SPIFFS
SPIFFS.begin();
//sets network name for AP mode
persWM.setApCredentials(DEVICE_NAME);
//persWM.setApCredentials(DEVICE_NAME, "password"); optional password
persWM.begin();

//handles commands from webpage, sends live data in JSON format
Expand Down

0 comments on commit 678086c

Please sign in to comment.