It's not quite that simple, but not far off. Based on sensor data in https://bthome.io/:
sensor data
// for battery (sending 0x61 as the value) NRF.setAdvertising({0x1C18:[0x02,0x01,0x61]});
But effectively, normal Bluetooth might advertise:
... 18 0F 61
and bthome will advertise:
... 18 1C 18 02 01 61
For the same data because it's wrapping it in the UUID 0x1C18 to stay compatible with Bluetooth
If you're sending lots of data then it'll be slightly more efficient, but for just 1 or 2 types of data it's actually less memory efficient.
@Gordon started
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.
It's not quite that simple, but not far off. Based on
sensor data
in https://bthome.io/:But effectively, normal Bluetooth might advertise:
and bthome will advertise:
For the same data because it's wrapping it in the UUID 0x1C18 to stay compatible with Bluetooth
If you're sending lots of data then it'll be slightly more efficient, but for just 1 or 2 types of data it's actually less memory efficient.