platypush.backend.adafruit.io

class platypush.backend.adafruit.io.AdafruitIoBackend(feeds, *args, **kwargs)[source]

Backend that listens to messages received over the Adafruit IO message queue

Triggers:

Requires:

__init__(feeds, *args, **kwargs)[source]
Parameters:feeds (list[str]) – List of feed IDs to monitor
on_message()[source]

Callback when a message is received on the backend. It parses and posts the message on the main bus. It should be called by the derived classes whenever a new message should be processed.

Parameters:msg – Received message. It can be either a key-value dictionary, a platypush.message.Message object, or a string/byte UTF-8 encoded string
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.