Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b4297e877 |
@@ -125,7 +125,7 @@ void set_alarm1(){
|
|||||||
|
|
||||||
|
|
||||||
void set_alarm2(){
|
void set_alarm2(){
|
||||||
Clock.setA2Time(0, al2h, al2m, 100, true, false, false);
|
Clock.setA2Time(0, al2h, al2m, 0b1000000, true, false, false);
|
||||||
//Clock.turnOnAlarm(1);
|
//Clock.turnOnAlarm(1);
|
||||||
byte A1Day, A1Hour, A1Minute, AlarmBits;
|
byte A1Day, A1Hour, A1Minute, AlarmBits;
|
||||||
bool A1Dy, A1h12, A1PM;
|
bool A1Dy, A1h12, A1PM;
|
||||||
|
|||||||
@@ -239,8 +239,8 @@ void add_minute(int i){
|
|||||||
|
|
||||||
void add_month(int i){
|
void add_month(int i){
|
||||||
M = M + i;
|
M = M + i;
|
||||||
if (m > 12){
|
if (M > 12){
|
||||||
m = 1;
|
M = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ void setup() {
|
|||||||
delay(400);
|
delay(400);
|
||||||
display_text("Uhr");
|
display_text("Uhr");
|
||||||
|
|
||||||
|
WiFi.hostname(NodeName);
|
||||||
|
//WiFi.mode(WIFI_OFF);
|
||||||
//WiFiManager intialisation. Once completed there is no need to repeat the process on the current board
|
//WiFiManager intialisation. Once completed there is no need to repeat the process on the current board
|
||||||
WiFiManager wifiManager;
|
WiFiManager wifiManager;
|
||||||
wifiManager.autoConnect();
|
wifiManager.autoConnect();
|
||||||
@@ -118,7 +120,8 @@ void setup() {
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
//OTA
|
//OTA
|
||||||
// No authentication by default
|
// No authentication by default
|
||||||
ArduinoOTA.setPassword((const char *)"ota-password");
|
ArduinoOTA.setPassword(NodeName.c_str());
|
||||||
|
ArduinoOTA.setHostname(NodeName.c_str());
|
||||||
|
|
||||||
ArduinoOTA.onStart([]() {
|
ArduinoOTA.onStart([]() {
|
||||||
Serial.println("Start");
|
Serial.println("Start");
|
||||||
|
|||||||
Reference in New Issue
Block a user