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");
|
console.log("> Notifications started");
|
||||||
characteristic.addEventListener("characteristicvaluechanged", props.onChange);
|
characteristic.addEventListener("characteristicvaluechanged", props.onChange);
|
||||||
console.log("> Characteristic value changed event listener added");
|
console.log("> Characteristic value changed event listener added");
|
||||||
|
|
||||||
|
btn.classList.remove("bg-red-600");
|
||||||
|
btn.classList.add("bg-green-600");
|
||||||
/*
|
/*
|
||||||
socket = io({
|
socket = io({
|
||||||
reconnection: true,
|
reconnection: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user