Skip to content

Commit 167a2a9

Browse files
authored
Update spiffs_rest_api.ino
1 parent a65deaf commit 167a2a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/spiffs_rest_api/spiffs_rest_api.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// https://github.com/esp8266/arduino-esp8266fs-plugin
2121

2222
#include <DNSServer.h>
23-
#include <FS.h>
23+
#include <LittleFS.h>
2424

2525
#define DEVICE_NAME "ESP8266 DEVICE"
2626

@@ -51,8 +51,8 @@ void setup() {
5151
DEBUG_PRINT(persWM.getApSsid());
5252
});
5353

54-
//allows serving of files from SPIFFS
55-
SPIFFS.begin();
54+
//allows serving of files from LittleFS
55+
LittleFS.begin();
5656
//sets network name for AP mode
5757
persWM.setApCredentials(DEVICE_NAME);
5858
//persWM.setApCredentials(DEVICE_NAME, "password"); optional password

0 commit comments

Comments
 (0)