|
|
|
@ -32,7 +32,7 @@ void setup() |
|
|
|
setupOTA(); |
|
|
|
|
|
|
|
// RemoteDebug
|
|
|
|
Debug.begin("alarmclock"); |
|
|
|
Debug.begin(REMDEB_CLIENT); |
|
|
|
|
|
|
|
// LED
|
|
|
|
maxBrightness = LED_MAXBRIGHTNESS_DEFAULT; |
|
|
|
@ -68,7 +68,7 @@ void setup() |
|
|
|
// OTA
|
|
|
|
void setupOTA() |
|
|
|
{ |
|
|
|
ArduinoOTA.setHostname("alarmclock"); // on donne une petit nom a notre module
|
|
|
|
ArduinoOTA.setHostname(OTA_CLIENT); // on donne une petit nom a notre module
|
|
|
|
ArduinoOTA.setPassword(OTA_PASSWORD); |
|
|
|
ArduinoOTA.onStart([]() { |
|
|
|
Debug.println("OTA Starting"); |
|
|
|
|