Change action button color to green once connected to cadence sensor

This commit is contained in:
Peter Stockings
2023-01-26 21:58:43 +11:00
parent 9ec6693031
commit 5a30278aaa

View File

@@ -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,