change button topic

This commit is contained in:
2018-11-17 16:54:45 +01:00
parent e0ad7ca823
commit 2cff616fab

View File

@@ -33,6 +33,6 @@ void RotaryPlugin::checkInput()
ButtonState newBtnState = rotaryEncoder->currentButtonState();
if(newBtnState != btnState){
btnState = newBtnState;
publish(String(config.topic) + String("/button"), String(btnState));
publish(String(config.topic) + String("/btn"), String(btnState));
}
}