This App will connect to the ESP32 Chat Server running on the local network. It will use mDNS to locate it and then connect and open a socket through which it will send text typed at the prompt to and the ESP32 ChatServer and will receive text from the ESP32 ChatServer that is sent to it from other instances of the ChatClient. If you only have iPhone device you can use the Chat Client from Chat Client and Server with Libevent to test. The ChatClient from Chat Client and Server with Libevent does not incorporate mDNS so you will need to get the ip address of the ESP32 ChatServer from the terminal and input it on the command line when launching the Windows/Linux ChatClient. This Android ChatClient app cannot be used with the Windows/Linux ChatServer as the server does not incorporate mDNS.
This project was created mainly for me to learn how to communicate with an ESP32 via WiFi from an Android device and to locate it using mDNS and I thought that it may be useful to someone else out there. This app is fairly simple but demonstrates how to locate the device using mDNS and open a socket for bi-directional communication.
- Check out the repository.
- Open it with XCode.
- Make sure you have the ESP32 Chat Server already running.
- Launch the app.
- Text typed on the input line will be sent to the server and will show up on the screen of every other Chat Client.