-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds threshold to switch as an option #13
Conversation
🫠😬😂
" #include <WiFi.h> fs::SPIFFSFS &FlashFS = SPIFFS; //////////////////////////////// String wallet; ///////////////////////////////// // Access point variables bool paid; WebSocketsClient webSocket; struct KeyValue { const int MAX_CONNECTION_ATTEMPTS = 5; void setup() FlashFS.begin(FORMAT_ON_FAIL); // get the saved details and store in global variables connectToWiFi(); connectToWebSocket(); void loop() { digitalWrite(2, LOW); //////////////////HELPERS/////////////////// String getValue(String data, char separator, int index) for (int i = 0; i <= maxIndex && found <= index; i++) { bool readFiles() StaticJsonDocument<1500> doc; if (error) { const JsonObject maRoot0 = doc[0]; const JsonObject maRoot1 = doc[1]; const JsonObject maRoot2 = doc[2]; const JsonObject maRoot3 = doc[3]; const JsonObject maRoot4 = doc[4]; return true; // Successfully read and parsed the file void connectToWiFi() if (WiFi.status() != WL_CONNECTED) { void connectToWebSocket() webSocket.onEvent(webSocketEvent); //////////////////WEBSOCKET/////////////////// void webSocketEvent(WStype_t type, uint8_t* payload, size_t length) {
} |
Several issues:
|
No description provided.