The only part that i have missing is the way to send that strings using the arduino.
So, the camera acts as a server, and you need the Arduino to act as a client. Load the Web Client example, change the server name/IP to that of the camera, and change the script to execute to whatever the script is running on the camera.