"""
    String to binary transmit client.
"""


# client.py
import socket

# create a socket object
s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )

# get local machine name
# host = socket.gethostname()
host = '192.168.0.48'

port = 9999

# connection to hostname on the port.
s.connect( ( host, port ) )
s.send( b"f 10" )
# Receive no more than 1024 bytes
tm = s.recv( 1024 )

s.close()

print("Robot command processed is %s" % tm.decode('ascii'))