client.py 356 Bytes
import socket
import sys

if __name__ == '__main__':
	# TODO : Prendre en arguments les donnees et l'adresse de la RPi
	clientSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM);
	data = sys.argv[2];
	clientSocket.sendto(data.encode(),(sys.argv[1],9090));
	dataFromServer,sourceAddress = clientSocket.recvfrom(1024);
	print(dataFromServer.decode());