Add SSID/PWD writing from webserver

This commit is contained in:
Daniel Öster 2024-07-09 23:38:17 +03:00
parent dd7ffcb09c
commit 99fd0d46b2
7 changed files with 97 additions and 11 deletions

View file

@ -1,5 +1,5 @@
#include "USER_SETTINGS.h"
#include <string>
/* This file contains all the battery settings and limits */
/* They can be defined here, or later on in the WebUI */
@ -14,8 +14,8 @@ volatile float CHARGER_END_A = 1.0; // Current at which charging is consid
#ifdef WEBSERVER
volatile uint8_t AccessPointEnabled =
true; //Set to either true or false incase you want the board to enable a direct wifi access point
const char* ssid = "REPLACE_WITH_YOUR_SSID"; // Maximum of 63 characters;
const char* password = "REPLACE_WITH_YOUR_PASSWORD"; // Minimum of 8 characters;
std::string ssid = "REPLACE_WITH_YOUR_SSID"; // Maximum of 63 characters;
std::string password = "REPLACE_WITH_YOUR_PASSWORD"; // Minimum of 8 characters;
const char* ssidAP = "Battery Emulator"; // Maximum of 63 characters;
const char* passwordAP = "123456789"; // Minimum of 8 characters; set to NULL if you want the access point to be open
const uint8_t wifi_channel = 0; // set to 0 for automatic channel selection