mirror of
https://gitlab.com/wirelos/sprocket-plugin-gpio.git
synced 2025-12-14 13:26:48 +01:00
change button topic
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user