diff --git a/static/js/BLE.js b/static/js/BLE.js index f751859..82f07c8 100644 --- a/static/js/BLE.js +++ b/static/js/BLE.js @@ -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,