Difference between revisions of "Component: IoT Made Easy (Comms: IoT/Cloud)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 167: | Line 171: | ||
| colspan="2" | The topic ID to publish data to | | colspan="2" | The topic ID to publish data to | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT |
| width="90%" | Data | | width="90%" | Data | ||
|- | |- | ||
Line 221: | Line 225: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} |
Revision as of 13:28, 17 November 2021
Author | Matrix TSL |
Version | 1.0 |
Category | Comms: IoT/Cloud |
Contents
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.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
ErrorAsString |
![]() |
Error |
![]() |
Return |
![]() |
GetTopicID |
Compares the topic ID of the last received message with enabled IDs. Returns the topic ID received. | |
![]() |
Return |
![]() |
Connect |
Connect to the MQTT Server. Returns the connected state. 0 if not connected, 1 if successful connection, or already connected. | |
![]() |
Return |
![]() |
GetPayloadInteger |
Get the Payload of the last received (Read) packet as a signed long value | |
[[File:]] - | Return |
![]() |
LastError |
Returns the last error | |
![]() |
Return |
![]() |
Read |
Read incoming data. Returns non-zero if packet received. Use GetTopicID and GetPayloadXXX to read the contents. | |
![]() |
Return |
![]() |
Disconnect |
Disconnects from the MQTT server and the network | |
![]() |
Return |
![]() |
GetPayloadFloat |
Get the Payload of the last received (Read) packet as a floating point value | |
![]() |
Return |
![]() |
GetPayloadString |
Get the Payload of the last received (Read) packet as a string value | |
![]() |
Payload |
![]() |
Size |
![]() |
Return |
![]() |
Initialise |
Starts up the MQTT component - call this after initialising the NetworkComms component. | |
![]() |
Return |