MQTT – MQ Telemetry Transport for B4J

MQTT – MQ Telemetry Transport for B4J

MQTT – MQ Telemetry Transport for B4J

Author
Alberto Iglesias
Release
2019-09-12
Version
2.0.0
Requirement
B4J

£8.99

MQTT – MQ Telemetry Transport for B4J

SKU: B4JLIBMQTT Category: Tag:

Product Description

MQTT – MQ Telemetry Transport for B4J

 

This library was made based on MQTT Protocol

Installation instructions:

– Copy the .xml and .jar(s) files to your custom libraries folder
– Select in your REFERENCED LIBRARIES

  • Events:
    • connectionlost ( )
    • deliverycomplete (Token As String)
    • messageArrived (Topic As String, Message As String)
    • onConnect (Status as boolean)
    • onDisconnect (Status as boolean)
    • onInitialized ( )

    Fields:

    • CleanSession As Boolean
    • KeepAliveInterval As Int
    • QoS_AtLeastOnce As Int
    • QoS_AtMostOnce As Int
    • QoS_ExactlyOnce As Int
    • generatedClientId As String

    Methods:

    • About As String
    • Connect (broker As String, ClientID As String, Username As String, Password As String) As Boolean
    • Disconnect As Boolean
    • Initialize (eventname As String)
    • Publish (Topic As String, Message As String, Qos As Int, Retained As Boolean)
    • Subscribe (Topic As String)
    • Unsubscribe (Topic As String)
    • Version As String
    • isConnected As Boolean

How works the MQTT protocol



 


 


References:
http://mqtt.org/
http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html
Mosquitto Broker: http://mosquitto.org/

Library
Sample

 

 

BEFORE PAY ANY LIBRAY, YOU CAN TEST THE LIBRARY TO MAKE SURE WILL BE WORK FOR YOUR PROJECT