An installation guide for the MQTT API bindings is part of their general description.
The example code below is Public Domain (CC0 1.0).
All published payloads to and from the MQTT bindings are in JSON format.
If an error occures, the bindings publish a JSON object containing the error message as member
It is published on the corresponding response topic:
Sets the r, g and b values for the LED.
Returns the r, g and b values of the LED as set by
Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.
The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). A Bricklet connected to an Isolator Bricklet is always as position 'z'.
The device identifier numbers can be found here. If symbolic output is not disabled, the device identifier is mapped to the corresponding name in the format used in topics.
The display name contains the RGB LED's name in a human readable form.