diff --git a/things/HardwareH801wifi.h b/things/HardwareH801wifi.h index 7496119..287985b 100644 --- a/things/HardwareH801wifi.h +++ b/things/HardwareH801wifi.h @@ -11,6 +11,8 @@ #include "DeviceLed.h" #include "DeviceRgb.h" +const char* FWNAME = "things@h801wifi"; + const byte PIN_LED = 14; DeviceLed deviceLed(PIN_LED); diff --git a/things/HardwareWitty.h b/things/HardwareWitty.h index 9f68b04..7f51128 100644 --- a/things/HardwareWitty.h +++ b/things/HardwareWitty.h @@ -10,6 +10,8 @@ #include "DeviceLdr.h" #include "DeviceButton.h" +const char* FWNAME = "things@witty"; + const byte PIN_RGB_RED = D8; const byte PIN_RGB_GREEN = D6; const byte PIN_RGB_BLUE = D7; diff --git a/things/things.ino b/things/things.ino index bdd9905..6e9f1f6 100644 --- a/things/things.ino +++ b/things/things.ino @@ -3,6 +3,8 @@ #include "HardwareWitty.h" //#include "HardwareH801wifi.h" +const char* FWVERSION = "1.0.0"; + void setupHandler() { for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) { devices[i]->deviceSetup(); @@ -16,7 +18,7 @@ void loopHandler() { } void setup() { - Homie.setFirmware("things", "1.0.1"); + Homie.setFirmware(FWNAME, FWVERSION); for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) { devices[i]->deviceRegister(); }