Skip to main content

Server listener and iot_message handler

Project description

App used at Raspberry Pi as receiver of incoming messages and pass them to registered handlers (relay, screen, sensors)

from message_listener.server import Server
from iot_message.message import Message
from message_listener.handler_debug import HandlerDebug
from iot_message.cryptor.base64 import Cryptor as B64

Message.node_name = "PC"
#Message.drop_unencrypted = True

svr = Server()
# svr.ignore_missing_decoders = False
svr.add_handler('NodeOne', HandlerDebug({}))

Add more than one handler:

svr = Server()
svr.add_handler('NodeOne', HandlerDebug({}))
svr.add_handler('NodeOne', HandlerDebug({}))


svr = Server()
svr.add_handler('NodeOne', [

Add workers:

Handler1(Worker1(), Worker2())


__init__(self, port=5053, ip_address='', buffer_size=65535)

Read more:



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for message-listener, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size message_listener-1.1.0-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size message_listener-1.1.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page