From e8ae3acc4a5b9a9849d794407eeb21f3c1103d53 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Thu, 2 Mar 2017 17:33:40 +0100 Subject: [PATCH] =?UTF-8?q?passage=20=C3=A0=20SERIAL=5FSPEED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqttled.example.h | 2 ++ mqttled.ino | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mqttled.example.h b/mqttled.example.h index 55b712c..c29557a 100644 --- a/mqttled.example.h +++ b/mqttled.example.h @@ -1,3 +1,5 @@ +#define SERIAL_SPEED 115200 + // LED #define LED_PIN D0 diff --git a/mqttled.ino b/mqttled.ino index c52b33d..d36ca90 100644 --- a/mqttled.ino +++ b/mqttled.ino @@ -1,3 +1,5 @@ +#include "mqttled.h" + // C'est moche mais c'est pour récuperer EVERY_N_SECONDS :) #include #include @@ -12,7 +14,7 @@ PubSubClient client(espClient); void setup() { - Serial.begin(115200); + Serial.begin(SERIAL_SPEED); Serial.println("\nresetting"); // WIFI