aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send_publish
blob: 50f430ec29a6c013657ca486f689b0689da3bd1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
"""
Usage: ./send_msg <ipaddresss> <command> <frame w/ values space separated>
"""
import sys

from eventmq.sender import Sender
from eventmq.client.messages import send_publish_request

if __name__ == "__main__":
    s = Sender()
    s.connect(sys.argv[1])

    msg = ['update', '1']
    topic = str('topic')
    send_publish_request(s, topic, msg)