Skip to content

Commit

Permalink
Add homie standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CWempe committed Nov 22, 2017
1 parent 5b4146c commit 19261f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion SuperLEDstrip.ino
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void setup(void)
Serial.begin(115200);

setupDHT();

Homie_setFirmware(HOMIE_FW_NAME, HOMIE_FW_VERSION); // The underscore is not a typo! See Magic bytes
Homie.disableResetTrigger(); // disable ResetTrigger, because it creates some problemes for me
//Homie.setStandalone(); // uncomment if you do not want to use wifi
Expand All @@ -160,6 +160,9 @@ void setup(void)
lightNode.advertise("scene").settable(lightSceneHandler);
lightNode.advertise("tempo").settable(lightTempoHandler);
Homie.setGlobalInputHandler(globalInputHandler);
if ( HOMIE_STANDALONE == true ) {
Homie.setHomieBootMode(HomieBootMode::STANDALONE);
}
Homie.setup();

setTempo(BeatsPerMinute);
Expand Down
3 changes: 2 additions & 1 deletion custom_values.h.example
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ uint8_t BeatsPerMinute = 80;
* Homie parameters
*/
#define HOMIE_FW_NAME "SuperLEDstrip"
#define HOMIE_FW_VERSION "2.0.1"
#define HOMIE_FW_VERSION "2.1.0"
#define HOMIE_STANDALONE false // here you can enable Homies standalone mode

/*
* Nextion Display
Expand Down

0 comments on commit 19261f7

Please sign in to comment.