From 9581d4cb0b5fd3abb6bb638ef85bf865d8539c8a Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Wed, 13 May 2020 17:03:04 +0900 Subject: [PATCH] Applied the append method --- examples/FSBrowser/FSBrowser.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/FSBrowser/FSBrowser.ino b/examples/FSBrowser/FSBrowser.ino index 010c017..a8e13ed 100644 --- a/examples/FSBrowser/FSBrowser.ino +++ b/examples/FSBrowser/FSBrowser.ino @@ -54,8 +54,6 @@ WebServer server(80); //Add a below line for AutoConnect. AutoConnect portal(server); AutoConnectConfig config; -AutoConnectAux FSBedit("/edit", "Edit"); -AutoConnectAux FSBlist("/list?dir=\"/\"", "List"); //holds the current upload File fsUploadFile; @@ -325,7 +323,8 @@ void setup(void){ config.title = "FSBrowser"; portal.config(config); //Register AutoConnect menu - portal.join({ FSBedit, FSBlist }); + portal.append("/edit", "Edit"); + portal.append("/list?dir=\"/\"", "List"); //Replacement as follows to make AutoConnect recognition. //server.begin(); portal.begin();