Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
Carl Hofmeister edited this page Jul 24, 2017 · 1 revision

Any ideas you have for how to go about designing the library should go here.

Subscriber interface:

The generic subscriber interface could look like this:

 subscriber = Subscriber('tcp://localhost:9000')

 def handle_exit(message):
     exit()
 def handle_sensor(message):
     print("Raw: {}".format(message['value']))

subsciber.subscribe(exit, handle_exit)
Clone this wiki locally