@@ -50,7 +50,9 @@ class BootstrapManager {
50
50
// using JsonDocument = StaticJsonDocument<BUFFER_SIZE>;
51
51
StaticJsonDocument<BUFFER_SIZE> parseQueueMsg (char * topic, byte* payload, unsigned int length); // print the message arriving from the queue
52
52
StaticJsonDocument<BUFFER_SIZE> parseHttpMsg (String payload, unsigned int length); // print the message arriving from HTTP
53
+ void littleFsInit ();
53
54
void bootstrapSetup (void (*manageDisconnectionFunction)(), void (*manageHardwareButton)(), void (*callback)(char *, byte*, unsigned int )); // bootstrap setup()
55
+ void bootstrapSetup (void (*manageDisconnectionFunction)(), void (*manageHardwareButton)(), void (*callback)(char *, byte*, unsigned int ), bool waitImprov, void (*listener)()); // bootstrap setup()
54
56
void bootstrapLoop (void (*manageDisconnectionFunction)(), void (*manageQueueSubscription)(), void (*manageHardwareButton)()); // bootstrap loop()
55
57
static void setMQTTWill (const char *topic, const char *payload, int qos, boolean retain, boolean cleanSession); // set the last will parameters for mqtt
56
58
static void publish (const char *topic, const char *payload, boolean retained); // send a message on the queue
@@ -69,8 +71,9 @@ class BootstrapManager {
69
71
[[maybe_unused]] String readValueFromFile (const String& filenameToUse, const String& paramName); // read a param from a json file
70
72
static bool isWifiConfigured (); // check if wifi is correctly configured
71
73
void launchWebServerForOTAConfig (); // if no ssid available, launch web server to get config params via browser
74
+ void launchWebServerCustom (bool waitImprov, void (*listener)()); // if no ssid available, launch web server to get config params via browser
72
75
static int getWifiQuality (); // get the wifi quality
73
-
76
+ void manageImprov ();
74
77
};
75
78
76
79
#endif
0 commit comments