I have used this to have the iOS Simulator, my iPad, my iPod Touch and my wife’s iPhone6+ all talking to each other at the same time. So if someone wants to try and tackle a translation to XOJO… in the meantime I’m going to think up a multi-player game that can take advantage of this
I tried to implement Multipeer Connectivity in declares but the problem is it is all asynchronous which doesn’t play nice with Xojo. We need to be able to dispatch shared method calls to the main thread to make this more likely because currently the work involved is huge compared to the demand and rewards. I’d like to implement it but until I have a need it’s unlikely I’ll spend much more time with it.
Why not simply treat the bluetooth port like any other network port and use UDP packets. My desktop and web apps, utilize a UDP protocol I developed where changes on one app on the network are then broadcast out over UDP. Any other devices listening on the UDP Group IP that I have set up will then receive the data and update their UI appropriately. It works quite well and I can have 10 different instances of my desktop, web app or both all running on a LAN and they are all kept in sync.
Utilize what we have available - the code to take advantage of a pair BT port is already in existence in Xojo. Why re-invent the wheel.
Now, iOS can’t utilize this until they implement a UDP socket for iOS which I hope will be soon.