Hello everyone, I'm trying to develope a low power sensor which can share its information through BLE using an Arduino Nano 33 BLE. The idea is that the sensor gathers information, processes it, send it to a central device through BLE and next it turns into low power mode until a new measurement is done in order to reduce power consumption.
The thing is that i've been reading a lot about BLE and checking the ArduinoBLE library but I have some doubts about my application.
I want to create a kind of beacon which publishes data that can be read by another device without directly establishing connection between both, but I don't know if this is possible. I've found that BLE has a function to broadcast information but I don't exacly know how to use it because most of the examples codes that I find use point to point connection and they must keep the connection between both devices always active.
Maybe some of you could help me to develope my project, I'd be so thankful.
This is te documentation of the ArduinoBLE library. There's a method for the characteristics which is broadcast()
Here there's information about BLE from Adafruit. It mentions the function of broadcasting.
On this video also comment the possibility of use a device as a beacon
There are many other official webpages and books that i've read that talks about it. If you look for information about BLE, you 'll soon find that it is used for IoT as a beacon broadcaster, but I can't find any example code for the Arduino library that uses it on this way.
Thanks for the links. I see what you are referring to.
Particularly " By including a small amount of custom data in the 31 byte advertising or scan response payloads, you can use a low cost Bluetooth Low Energy peripheral to sent data one-way to any devices in listening range, as shown in the illustration below. This is known as Broadcasting in Bluetooth Low Energy."
Perhaps you are the only one interested in this, so you will need to begin further research and document well, all you find. Good luck.
It is not an application that needs security and it doesn't need to control nothing, is just a sensor publishing data, as you can see the most important here is reduce power consumption