This is great - thanks for posting it up separately to your other stuff! I've been meaning to try one of those Xiaomi Plant moisture sensors for ages, and this gives me a good excuse :)
If you're interested, you should be able to change the last part of NRF.findDevices to:
which will automatically filter out only devices that advertise that service data - it's a bit faster and more efficient with memory if there are a bunch of BLE devices.
© Espruino, powered by microcosm.
Report a problem