Component: IoT Made Easy (Comms: IoT/Cloud): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 94: | Line 94: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connect''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connect''' | ||
|- | |- | ||
| Line 108: | Line 108: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Disconnect''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Disconnect''' | ||
|- | |- | ||
| Line 122: | Line 122: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ErrorAsString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ErrorAsString''' | ||
|- | |- | ||
| Line 141: | Line 141: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadFloat''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadFloat''' | ||
|- | |- | ||
| Line 155: | Line 155: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadInteger''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadInteger''' | ||
|- | |- | ||
| Line 169: | Line 169: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPayloadString''' | ||
|- | |- | ||
| Line 193: | Line 193: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTopicID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTopicID''' | ||
|- | |- | ||
| Line 207: | Line 207: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 221: | Line 221: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LastError''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LastError''' | ||
|- | |- | ||
| Line 235: | Line 235: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Ping''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Ping''' | ||
|- | |- | ||
| Line 249: | Line 249: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishFloat''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishFloat''' | ||
|- | |- | ||
| Line 273: | Line 273: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishInteger''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishInteger''' | ||
|- | |- | ||
| Line 297: | Line 297: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PublishString''' | ||
|- | |- | ||
| Line 321: | Line 321: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Read''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Read''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Comms: IoT/Cloud |
IoT Made Easy component
A component designed to simplify MQTT comms allowing for multiple data streams to be dealt with in a simple manner. Deals with translating values to and from the broker from topic strings into message IDs and numeric values. Works with lots of different MQTT brokers.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_IoTMadeEasy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_IoTMadeEasy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Connect
| Connect | |
| Connect to the MQTT Server. Returns the connected state. 0 if not connected, 1 if successful connection, or already connected. | |
| Return | |
Disconnect
| Disconnect | |
| Disconnects from the MQTT server and the network | |
| Return | |
ErrorAsString
| ErrorAsString | |
| Error | |
| Return | |
GetPayloadFloat
| GetPayloadFloat | |
| Get the Payload of the last received (Read) packet as a floating point value | |
| Return | |
GetPayloadInteger
| GetPayloadInteger | |
| Get the Payload of the last received (Read) packet as a signed long value | |
| Return | |
GetPayloadString
| GetPayloadString | |
| Get the Payload of the last received (Read) packet as a string value | |
| Payload | |
| Size | |
| Return | |
GetTopicID
| GetTopicID | |
| Compares the topic ID of the last received message with enabled IDs. Returns the topic ID received. | |
| Return | |
Initialise
| Initialise | |
| Starts up the MQTT component - call this after initialising the NetworkComms component. | |
| Return | |
LastError
| LastError | |
| Returns the last error | |
| Return | |
Ping
PublishFloat
PublishInteger
PublishString
Read
| Read | |
| Read incoming data. Returns non-zero if packet received. Use GetTopicID and GetPayloadXXX to read the contents. | |
| Return | |