@Erel:
I have successfully edited the AsyncStreamsText Example and my remote Arduino sensors are able to connect to my Android app and send / receive data.
However, I must hard-code the IP and Port of the Android device into the Arduino code in order to establish a connection - Obviously
If we look at a scenario where additional Arduino based sensors can be added at any stage, I must be able to control who connects at the Android end - otherwise I could have sensors connecting to the incorrect Android device (It is possible to have 2 or more Android devices within range of the sensors)
My initial thinking was to use the MAC address (or hard-coded ID) of each sensor as a unique identifier which could be entered into the Android app via an EditText into a database or table.
When connection from a remote sensor is attempted, the Android app would search the database or table for valid sensors - If True the connection is established - if False reject the connection.
This approach would allow the Android app to only accept connections from valid remote sensors.
I hope this makes sense?
Is it possible to read/obtain the MAC address of devices attempting to establish a connection?