Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA Password Support #22

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arduino/KmanSonoff_v1.00mc/KmanSonoff_v1.00mc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ void setup() {
WiFi.hostname(UID);
WiFi.begin(WIFI_SSID, WIFI_PASS);
ArduinoOTA.setHostname(UID);
#ifdef OTA_PASS
ArduinoOTA.setPassword(OTA_PASS);
#endif
ArduinoOTA.onStart([]() {
OTAupdate = true;
blinkLED(LED, 400, 2);
Expand Down
1 change: 1 addition & 0 deletions arduino/KmanSonoff_v1.00mc/config_mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ int QOS = 0; // QOS level for a

#define WIFI_SSID "wifissid" // Your WiFi ssid
#define WIFI_PASS "wifipass" // Your WiFi password
#define OTA_PASS 0 // OTA Password for reflashing - if 0 disabled
/*
======================================================================================================================================
*/
3 changes: 3 additions & 0 deletions arduino/KmanSonoff_v1.00sc/KmanSonoff_v1.00sc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ void setup() {
WiFi.hostname(UID);
WiFi.begin(WIFI_SSID, WIFI_PASS);
ArduinoOTA.setHostname(UID);
#ifdef OTA_PASS
ArduinoOTA.setPassword(OTA_PASS);
#endif
ArduinoOTA.onStart([]() {
OTAupdate = true;
blinkLED(LED, 400, 2);
Expand Down
1 change: 1 addition & 0 deletions arduino/KmanSonoff_v1.00sc/config_sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ int QOS = 0; // QOS level for a

#define WIFI_SSID "wifissid" // Your WiFi ssid
#define WIFI_PASS "wifipass" // Your WiFi password
#define OTA_PASS 0 // OTA Password for reflashing - if 0 disabled
/*
===========================================================================================================================================
*/