B4R Question connect iPhone and Android with Wemos

D

Deleted member 103

Guest
Hi,

I can connect to my Wemos-board with Android (Wemos is the server). For the connection I use the Library "WiFiConnect".
Now I want to simultaneously build a connection with an iPhone. How does it work? Is there a library / function for this?

Thank you in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
D

Deleted member 103

Guest
Thank Erel.
I need to simultaneously transmit at least two devices.
 
Upvote 0
D

Deleted member 103

Guest
Go with MQTT.
I'm sorry Erel, but I do not understand how to use MQTT to send the data from WeMos to Android and iOS without having a server.
Your example uses a B4j server, for my solution I can not use a B4j server and no Internet.
I start my WeMos as Wifi.StartAccessPoint2 ( "myWifi", "passwd").
Android and iOS connect with the WeMos and everyone gets a new IP address.
Until everything is clear, how do I send from now with MQTT the data to the 2 devices?
 
Upvote 0
D

Deleted member 103

Guest
Thank you Erel!
I love MQTT, it is so simple, I think now on the right way. :)
 
Upvote 0
D

Deleted member 103

Guest
Unfortunately, the data on the connected devices does not come exactly at the same time.
From device to device, 2 to 4 hundredths of a second are different. :(
 
Upvote 0
Top