I have an app (the source code is not available to me). This app has a wifi module with its own ssid and password. My task is to connect the app to arduino.
I have an esp board(Espressif Systems). With this board i can generate ssid and password and has wifi capabilities. The problem is this app only connects with the wifi module. There is a protocol between the app and the wifi module. I have protocol: TCP/IP text based protocol. My question is what can i do to make this connection between app and the esp happen? I am new to this area. I really need help with this one. I thank you for your assistence and understanding.
confirm you can connect the ESP to the app wifi module using its SSID and password?
I assume app wifi module runs a TCP server with this text based protocol?
do you know the TCP server port number?
if so you should be able to connect a TCP client and receive text
I can only connect the app with its own wifi module.
But when i generate esp32 with ssid and password, it is not working.
I have no idea, how to connect these two(app and esp32). What i was give is only a text based TCP ip protocol. it is stating something like General command structure:
[STX][RequestID][Flags][Command][Data][ETX]
I dont have server port number. or where can i find it. Thank you for your reply and reading till end
can you upload the text based TCP protocol details or at least a summary and examples of commnds?
I would think it should specify the server port - otherwise could use wireshark to look at traffic
have you tried using wireshark to view network traffic?
what does the app run on?
when you connect the app to the WiFi module you should be able to see the protocol (TCP or UDP) and the port - you should also be able to see the contents of packets
e.g. if it is using telnet it is normally port 23