Need some help with reading characteristic. I have a custom service and characteristics for writing to my device and reading from it. Writing works perfect. Value from read I just load from a global (FuelLevel) that I update every second in a setInterval. I know its updating because I can log it in console. When I read it from WebBluetooth app I only get the initial value that the global was loaded from but no updates. I am pretty sure I am missing something in the setServices descriptor.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Need some help with reading characteristic. I have a custom service and characteristics for writing to my device and reading from it. Writing works perfect. Value from read I just load from a global (FuelLevel) that I update every second in a setInterval. I know its updating because I can log it in console. When I read it from WebBluetooth app I only get the initial value that the global was loaded from but no updates. I am pretty sure I am missing something in the setServices descriptor.