How to configure tcp server
Hi,
I have built a robot with ESP32 module communicating over WiFi to control the robot. The robot is working well and I am able to send cmd_vel from pc to robot and it seems to be driving well.
const char* ssid = "my_ssid";
const char* password = "my_pwd";
IPAddress server(192, 168, 0, 110); // ip of ROS server
client.connect(server, 11411);
How do I make it truly mobile where in I go to a different location, another WiFi and still able to connect to this robot without reprogramming the robot with ssid and password?
Secondly, once I rebooted, the IP address of my PC changed (on VM). I understand that I can use ROS_MASTER to configure server, but some servers have 192.168.0.xxx while others have 192.168.1.xxx.
Lastly, "11411" port, is this universal that I can keep it stored always on the robot controller, or will that also change if I install ROS on a different system?
Thank you for any support provided. -Praveen