Skip to content

Commit

Permalink
feat: add wifi hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
davidramiro committed Mar 21, 2024
1 parent 537ae6b commit 8164715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void setup()
initLEDs();

WiFi.mode(WIFI_STA);
WiFi.hostname(ESP_HOST_NAME);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
int8_t wifiStatusCode = WiFi.waitForConnectResult();
if (wifiStatusCode != WL_CONNECTED)
Expand Down
1 change: 1 addition & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
#define NUM_SEGMENTS 2
#define NAME_BUFFER_LEN 30
#define DEFAULT_STATUS "off"
#define ESP_HOST_NAME "ESPStatusLight"
#define LOG_LEVEL LOG_LEVEL_INFO
#define BRIGHTNESS_EEPROM_ADDR (NUM_SEGMENTS * NAME_BUFFER_LEN + 2)

0 comments on commit 8164715

Please sign in to comment.