#!/usr/bin/python

import socket

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

# Connect to the server
#Put your meter IP address and port number here:
s.connect(('192.168.1.119',10001))

# Send a message to the server
s.send("rx".encode('utf-8'))

# Receive the echoed message from the server
received_msg = s.recv(1024).decode('utf-8')
print(received_msg)

# Close the connection
s.close()
