Ok, success! Not that I know why it did not work in the first place, but by getting rid of the cccd-handle altogether, I'm now able to receive data from 6 sensors to Bangle + calculating altitude from the barometer.
31.54c co2:554 IAQ:56 Hum:25 1001.64 pa Gas:34170 Alt:-0.17m
For the benefit of others, here's what I did:
On Bangle side:
Nothing, i.e. no need to handle_cccd = ...,
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.
Ok, success! Not that I know why it did not work in the first place, but by getting rid of the cccd-handle altogether, I'm now able to receive data from 6 sensors to Bangle + calculating altitude from the barometer.
31.54c co2:554 IAQ:56 Hum:25 1001.64 pa Gas:34170 Alt:-0.17m
For the benefit of others, here's what I did:
On Bangle side:
Nothing, i.e. no need to handle_cccd = ...,
On Arduino side:
Changed to:
from:
...and put this in the
loop
function: