.

Average: 0
Rating Count: 0

Development status: Released, Release: 1.0.0
Information status: Updated
Repository: https://gitlab.com/s2innovation-partners/device-services/mqtt
Contact:



Class Description


MQTTAccess is a simple device server which provides MQTT topics data via Sub method and allows to publish via Pub method.

Families: Communication

Key words:

Platform: All Platforms

Language: PythonHL

License: Custom

Contact:

Hardware


Manufacturer: S2Innovation

Class interface


Attributes:

Commands:

Name Description
DisconnectInput: DevVoid
Output: DevVoid
ConnectInput: DevVoid
Output: DevVoid
PubInput: DevVoid
Array of two elements. First one, name of MQTT topic. Second one, message that will be send
Output: DevVoid
SubInput: DevVoid
Name of MQTT topic
Output: DevVoid
Empty string if not subscribed yet or last message from topic

Pipes:

Properties:

Name Description
TokenDevString auth token
ClientKeyDevString path to client key
ClientCertDevString path to client cert
CaCertDevString path to ca cert
PasswordDevString password
UserDevString username
MQTTKeepaliveDevLong maximum period in seconds allowed between communications with the broker
MQTTPortDevLong 1883 standard port. 8883 port with encryption
MQTTHostDevString
PortDevLong tango port
HostDevString tango host


Please log in to comment.

README

# MQTTAccess
MQTTAccess is a simple device server which provides MQTT topics data via Sub method and allows to publish via Pub method.
### Commands:

* ``Sub(topic)``
* Parameters:
``topic`` (String) - Topic name e.g. ``"home/temperature/t1"``
* Returns:
String - last msg on topic.

* ``Pub(args)``
* Parameters:
``args`` (List of 2 String):
``topic``
``message``

10 Sep 2020,
Updated:
The device class has been updated.
You can see previous version here .



1 Sep 2020,
Created:
The device class has been added to catalogue.
Added by:user67 on:1 Sep 2020, 9:50 a.m.