Change action button color to green once connected to cadence sensor
This commit is contained in:
@@ -24,6 +24,9 @@ async function connect(props) {
|
||||
console.log("> Notifications started");
|
||||
characteristic.addEventListener("characteristicvaluechanged", props.onChange);
|
||||
console.log("> Characteristic value changed event listener added");
|
||||
|
||||
btn.classList.remove("bg-red-600");
|
||||
btn.classList.add("bg-green-600");
|
||||
/*
|
||||
socket = io({
|
||||
reconnection: true,
|
||||
|
||||
Reference in New Issue
Block a user