Skip to content

Commit

Permalink
Add Improv-WiFi save credentials to NVR
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed Jan 28, 2024
1 parent 3ebd3e2 commit 59e1832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CO2_Gadget_Improv.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ void onImprovWiFiErrorCb(ImprovTypes::Error err) {
blink_led(2000, 3);
}

void onImprovWiFiConnectedCb(const char *ssid, const char *password) {
// Save ssid and password here
// server.begin();
void onImprovWiFiConnectedCb(const char *ssid, const char *password) {
Serial.println("-->[IMPR] Connected to: " + String(ssid));
wifiSSID = ssid;
wifiPass = password;
putPreferences();
blink_led(100, 3);
}

Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ build_flags =
-D MQTT_BROKER_SERVER="\"192.168.1.145"\"
-D CO2_GADGET_VERSION="\"0.8."\"

-D CO2_GADGET_REV="\"086"\"
-D CO2_GADGET_REV="\"087"\"
-D CORE_DEBUG_LEVEL=0
-DNEOPIXEL_PIN=26 ; Pinnumber for button for down/next and back / exit actions
-DNEOPIXEL_COUNT=16 ; How many neopixels to control
Expand Down

0 comments on commit 59e1832

Please sign in to comment.