G gilsonmv Member Jun 4, 2023 #1 Hi everybody, How do I change the B4A_BLE program on publish: Connecting to Arduino with BLE (Bluetooth Low Energy) In the previous example we broadcasted a single byte as part of the advertising data: https://www.b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/ In this example the Android or iOS device (only one at a time) will connect to the BLE peripheral and read and write... www.b4x.com I want to connect simultaneously on two bluetooth modules. I want these two bluetooth modules to receive the same data at the same time. Attachments B4A_BLE.zip B4A_BLE.zip 8.5 KB · Views: 319
Hi everybody, How do I change the B4A_BLE program on publish: Connecting to Arduino with BLE (Bluetooth Low Energy) In the previous example we broadcasted a single byte as part of the advertising data: https://www.b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/ In this example the Android or iOS device (only one at a time) will connect to the BLE peripheral and read and write... www.b4x.com I want to connect simultaneously on two bluetooth modules. I want these two bluetooth modules to receive the same data at the same time.
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2023 #2 Implement all the ble related code in a class and create a class instance for each connection. Upvote 0
E emexes Expert Licensed User Longtime User Jun 5, 2023 #3 Erel said: Implement all the ble related code in a class and create a class instance for each connection. Click to expand... Does that mean it can be done by having a separate BleManager for each connection? Is there a limit to how many devices the phone can connect to (or an app can connect to?) simultaneously? Upvote 0
Erel said: Implement all the ble related code in a class and create a class instance for each connection. Click to expand... Does that mean it can be done by having a separate BleManager for each connection? Is there a limit to how many devices the phone can connect to (or an app can connect to?) simultaneously?
GMan Well-Known Member Licensed User Longtime User Jun 5, 2023 #4 Simply yes and AFAIK the Limit is 4 Upvote 0
G gilsonmv Member Jun 5, 2023 #5 Hey, Could you give me an example of how to implement all the ble related code in a class and create a class instance for each connection? I tried using the posted examples: B4A BLE2 Multiple Connection Problem Hi Erel, I have created a Galaxy S8 Central controlling 2 BLE Devices, using the BLE2 V1.35 Library. Schematic : S8 CENTRAL PERIPHERALS Manager1 Buttons Set ------> Device1 Manager2... www.b4x.com Is it possible to connect to multiple bluetooth modules ?? Hi. I want to startup in home automation using my nexus 7 tablet. I have 3 bluetooth modules ( bluesmirf from sparkfun) and what to be able to connect to all of them so I can send specific commands from my tablet to each one. Each module has a specific Mac address and a Spesific name. Has... www.b4x.com But I wasn't successful. Attachments B4A_BLE.zip B4A_BLE.zip 8.5 KB · Views: 302 Upvote 0
Hey, Could you give me an example of how to implement all the ble related code in a class and create a class instance for each connection? I tried using the posted examples: B4A BLE2 Multiple Connection Problem Hi Erel, I have created a Galaxy S8 Central controlling 2 BLE Devices, using the BLE2 V1.35 Library. Schematic : S8 CENTRAL PERIPHERALS Manager1 Buttons Set ------> Device1 Manager2... www.b4x.com Is it possible to connect to multiple bluetooth modules ?? Hi. I want to startup in home automation using my nexus 7 tablet. I have 3 bluetooth modules ( bluesmirf from sparkfun) and what to be able to connect to all of them so I can send specific commands from my tablet to each one. Each module has a specific Mac address and a Spesific name. Has... www.b4x.com But I wasn't successful.