Skip to content
Snippets Groups Projects
Commit 35775a50 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Adds examples for getmessage and putmessage with JLigier

parent 478ebe19
Branches
No related tags found
No related merge requests found
import socket
import controlhost as ch
s = socket.socket()
host = '131.188.167.62'
port = 5553
s.connect((host, port))
message = ch.Message('_Subscri', ' w foo')
print(s.send(message.data))
message = ch.Message('_Always')
print(s.send(message.data))
print(s.recv(1024))
s.close()
import socket
import controlhost as ch
s = socket.socket()
host = '131.188.167.62'
port = 5553
s.connect((host, port))
message = ch.Message('foo', 'test')
print(s.send(message.data))
s.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment