Skip to content

Commit

Permalink
Set hostname correctly and disable debug for WC (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyservin committed Nov 15, 2021
1 parent d54f19c commit 5023fee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linka-firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ void initOta()
*/
bool initWifi()
{
// Let WiFi Manager handle connections
wc.setDebug(true);
// Disable debug for WiFi connect
wc.setDebug(false);

/* Set our callbacks */
wc.setAPCallback(configModeCallback);
Expand All @@ -468,6 +468,9 @@ bool initWifi()
sprintf(ap_name, "linka-%x", g_device_id);
wc.setAPName(ap_name);

// Set correct hostname
WiFi.hostname(ap_name);

//set config save notify callback
wc.setSaveConfigCallback(saveConfigCallback);

Expand Down

0 comments on commit 5023fee

Please sign in to comment.