Allows to register a new listener activator, a handler that is called to startup a MQTT listener running a particular protocol (or maybe user defined behaviour).

Parameters

ctx

The context where the handler is being registered

proto

The protocol label that will identify this handler. This protocol label will be used by system administrator while configuring ports this myqttd server instance will listen to. See /etc/myqtt/myqtt.conf (inside /global-settings/ports/port).

listener_activator

The listener activator that will be called if the proto label matches.

user_data

User defined pointer that will be passed in into the listener activator handler.