Add feature to set a custom device hostname

This commit is contained in:
Fredrik 2025-07-03 12:21:55 +02:00
parent f94a011063
commit daeeece63a
5 changed files with 12 additions and 1 deletions

View file

@ -26,6 +26,7 @@ std::string password = WIFI_PASSWORD; // Set in USER_SECRETS.h
const char* ssidAP = "Battery Emulator"; // Maximum of 63 characters, also used for device name on web interface
const char* passwordAP = AP_PASSWORD; // Set in USER_SECRETS.h
const uint8_t wifi_channel = 0; // Set to 0 for automatic channel selection
const char* hostname = "battery-emulator"; // Hostname for the device, needs to be enabled in USER_SETTINGS.h
#ifdef WEBSERVER
const char* http_username = HTTP_USERNAME; // Set in USER_SECRETS.h