A package for IoTs to interact with Alfons
Project description
Alfons IoT
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alfonsiot-0.0.11.tar.gz
(3.7 kB
view details)
File details
Details for the file alfonsiot-0.0.11.tar.gz
.
File metadata
- Download URL: alfonsiot-0.0.11.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7cc582462103e39afc878979f45bd32e8d8a969b02ebcb769b04c315d22635 |
|
MD5 | 3039e9e844975f74c8246aeca6c5f44b |
|
BLAKE2b-256 | 6adb516fd7bd211650872e37983bffd36b0f8ddb4424162f2c4a44603f5fa0c0 |