add function that gets called before homie initialization

This commit is contained in:
2016-05-21 19:19:24 +02:00
parent 6d0cf8f786
commit bfd74e61a1
5 changed files with 21 additions and 0 deletions

View File

@ -20,6 +20,7 @@ void loopHandler() {
}
void setup() {
hardwareSetup();
Homie.setFirmware(FWNAME, FWVERSION);
for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) {
devices[i]->deviceRegister();