Browse Source

pasage des hostanmes de remotedebug et ota en vars

master
Julien Cabillot 3 years ago
committed by Cabillot Julien
parent
commit
2fcd9e1908
2 changed files with 4 additions and 2 deletions
  1. 4
      arduino/alarmclock/alarmclock.cpp
  2. 2
      arduino/alarmclock/alarmclock.exemple.h

4
arduino/alarmclock/alarmclock.cpp

@ -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");

2
arduino/alarmclock/alarmclock.exemple.h

@ -4,9 +4,11 @@
int fps;
// OTA
#define OTA_CLIENT "alarmclock"
#define OTA_PASSWORD "XXX"
// DebugRemote
#define REMDEB_CLIENT "alarmclock"
RemoteDebug Debug;
// LED

Loading…
Cancel
Save