'How to send data to multiple raspberry pi's at a time from raspberry pi 4 via Bluetooth?
I was working on Bluetooth project and I connected two Raspberry pi4 successfully and they are exchanging the data, Referred from this.
Now I need to send sensor data to multiple raspberry pi's at a time and they should exchange message automatically.
I saw some articles, saying that we can connect up to 10 devices at a time. But how to create multiple clients for a single Bluetooth server?
Any help would be appreciated.
Solution 1:[1]
When an LE server accepts a connection, it stops advertising and so will not accept any more connections. (see Bluetooth Core Spec Vol 2 Part E 7.8.9). You need each Pi to connect, read, and then disconnect at separate times without tripping over each other, or one Pi connected to the LE server, and multiple Classic RFCOMM serial connections (which can be open simultaneously) from there to the other Pis to pass the data on.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | petzval |
