2019-04-10 17:01:21 +02:00
|
|
|
from client import RCFClient
|
2019-04-08 15:54:21 +02:00
|
|
|
import time
|
|
|
|
client = RCFClient()
|
|
|
|
|
|
|
|
client.connect("127.0.0.1",5555)
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
while True:
|
|
|
|
client.set('key', 1)
|
|
|
|
# Distribute as key-value message
|
|
|
|
time.sleep(1)
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
pass
|