We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone. I have a system where I exchange data between the processing and an ESP8266 successfully. When the ESP8266 receives processing data it prints the IP (from the pc where the processing is installed). I would like to do the opposite, when the processing receives some data print the IP of who sent the data. It would be possible? I thank you all
Answers
If your unit sending data knows its own IP, then you can send this info as part of the data stream to Processing and do the data extraction and manipulation on the Processing side to retrieve this information. It will be great if you post your code to see what libraries you are using and your current approach.
Here are some links I think are relevant to your task:
https://www.arduino.cc/en/Reference/WiFiConfig
https://www.arduino.cc/en/Reference/WiFiLocalIP
http://www.esp8266.com/viewtopic.php?f=32&t=8329&start=4
https://github.com/esp8266/Arduino/issues/2100
Kf
Kfrajer thanks for the reply. I confess I had not thought of that yet. The processing sends data to the esp8266 and waits for the response, ie the own processing is aware of the esp8266 ip and I just wanted to make sure the data I receive is from esp8266 that I made the request because I have several clients connected. I'll use your suggestion and return with the results.