Hi there
I've just finished my first try with UDP, wow. With the attached code I have managed to get the app installed on two different android devices, connected them to the same wifi, established a connected and let them speak together. It's actually easier than I thought.
I also tested this with Genymotion and I was able to send from my PC but communication from the device didnt come through. My genymotion device network connection is bridged via VirtualBox.
I was intending to add a 'polling' timer to fetch data at intervals from the connected device but didnt come around it yet. It would be interesting to have this working on public ip addresses though. Will search b4x for that.
Attached is the source code. (See manifest for permissions)
I've just finished my first try with UDP, wow. With the attached code I have managed to get the app installed on two different android devices, connected them to the same wifi, established a connected and let them speak together. It's actually easier than I thought.
I also tested this with Genymotion and I was able to send from my PC but communication from the device didnt come through. My genymotion device network connection is bridged via VirtualBox.
I was intending to add a 'polling' timer to fetch data at intervals from the connected device but didnt come around it yet. It would be interesting to have this working on public ip addresses though. Will search b4x for that.
Attached is the source code. (See manifest for permissions)