Code that activates a motor when receiving a command over tcp