Enable a socket connection to send a specific JSON message and share the images via samba

The parameters are the following: