pasage des hostanmes de remotedebug et ota en vars
This commit is contained in:
parent
86caa95f57
commit
2fcd9e1908
@ -32,7 +32,7 @@ void setup()
|
|||||||
setupOTA();
|
setupOTA();
|
||||||
|
|
||||||
// RemoteDebug
|
// RemoteDebug
|
||||||
Debug.begin("alarmclock");
|
Debug.begin(REMDEB_CLIENT);
|
||||||
|
|
||||||
// LED
|
// LED
|
||||||
maxBrightness = LED_MAXBRIGHTNESS_DEFAULT;
|
maxBrightness = LED_MAXBRIGHTNESS_DEFAULT;
|
||||||
@ -68,7 +68,7 @@ void setup()
|
|||||||
// OTA
|
// OTA
|
||||||
void setupOTA()
|
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.setPassword(OTA_PASSWORD);
|
||||||
ArduinoOTA.onStart([]() {
|
ArduinoOTA.onStart([]() {
|
||||||
Debug.println("OTA Starting");
|
Debug.println("OTA Starting");
|
||||||
|
|||||||
@ -4,9 +4,11 @@
|
|||||||
int fps;
|
int fps;
|
||||||
|
|
||||||
// OTA
|
// OTA
|
||||||
|
#define OTA_CLIENT "alarmclock"
|
||||||
#define OTA_PASSWORD "XXX"
|
#define OTA_PASSWORD "XXX"
|
||||||
|
|
||||||
// DebugRemote
|
// DebugRemote
|
||||||
|
#define REMDEB_CLIENT "alarmclock"
|
||||||
RemoteDebug Debug;
|
RemoteDebug Debug;
|
||||||
|
|
||||||
// LED
|
// LED
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user