how can I connect a mobile device via usb cable or wifi without necessarily having servers or similar. I would like to send messages through the messaging apps installed on my phone
example
Yes right, put two devices (two or more devices, windows, android, iphone doesn't matter) and one writes and the others receive.@Star-Dust è possibile anche qui avere la lista di chi è connesso
@Star-Dust it is also possible here to have the list of who is connected
@Star-Dust but that's only for the local network, if you wanted to go outside everything changesYes right, put two devices (two or more devices, windows, android, iphone doesn't matter) and one writes and the others receive.
You can also have a list but you have to create a transmission protocol and you can have a list, send files, even audio communication .... anything you like ... see also this example
[B4X] Audio Streaming UDP
Based on this @Erel code that simulated a Walkie Talkie, I developed a system for streaming audio between Android and Desktop devices with UDP. You can connect with multiple devices. I found that some routers lose a lot of UDP packets (a high percentage) and the sound is not uniform. If you...www.b4x.com
@Star-Dust unless I have a static ip address or use what was once noipSì, sulla rete interna come ho scritto. L'ho proposto perché non ho visto specificato che era necessaria una trasmissione di rete esterna.
Se questo è il tuo requisito, è necessario almeno un server per trasmettere l'indirizzo IP dei dispositivi che devono comunicare.
SendData (ser.ConvertObjectToBytes(xx))
Private Sub SendData (data() As Byte)
If connected Then astream.Write(data)
End Sub