A package for IoTs to interact with Alfons
This is a package for IoT's to interact with Alfons.
import alfonsiot def onMessage(iot, topic, payload): print("onMessage", topic, payload) def onTopicMessage(message): print("Got message from specified", message) def onConnect(iot): print("Connected!", iot) iot.subscribe("topic", onTopicMessage) iot.publish("topic", "Message!") iot = alfonsiot.start(host="", port="", username="", password="") iot.onConnect = onConnect iot.onMessage = onMessage
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.