Android Question Send Data to multiple Devices?

Quillok

Member
Licensed User
Longtime User
Hey,

is it possible to send data to multiple devices without internet/server connection?

As far as i know, a blutooth connection is only possible for two devices.

Is there a possibility if all devices are in the same wifi network? Or maybe without beeing in the same network?
 

emexes

Expert
Licensed User
is it possible to send data to multiple devices
Is it the same data to all devices?

If all the devices have Bluetooth Low Energy, then you could use this library:

https://www.b4x.com/android/forum/threads/ble-peripheral.84051/

to make the sending device a BLE server, and this post:

https://www.b4x.com/android/forum/threads/ble-peripheral-advertising-data.91842/

suggests that you can stuff some data into the advertising packets, from where it can be received without each individual receiver having to connect to the server.
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
or via tcp/ip server/client inside the same network.
app with server socket that listen on any port and the other apps connect by ip and port then you can stream data in both directions.
 
Upvote 0

emexes

Expert
Licensed User
send data to multiple devices without internet/server connection?
It'd help to know: What is the intended use? Are the devices going to know each other? Will they be in a location where they can connect to a shared network, or is this gathering going to happen in different and unknown locations?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…