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