Difference between revisions of "Component: IoT Made Easy (Comms: IoT/Cloud)"
From Flowcode Help
Jump to navigationJump to searchLine 77: | Line 77: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 83: | Line 85: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ErrorAsString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 101: | Line 104: | ||
+ | ===PublishString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 124: | Line 128: | ||
+ | ===GetTopicID=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 137: | Line 142: | ||
+ | ===Connect=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 150: | Line 156: | ||
+ | ===GetPayloadInteger=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 163: | Line 170: | ||
+ | ===LastError=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 176: | Line 184: | ||
+ | ===Read=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 189: | Line 198: | ||
+ | ===Disconnect=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 202: | Line 212: | ||
+ | ===PublishFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 225: | Line 236: | ||
+ | ===Ping=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 238: | Line 250: | ||
+ | ===PublishInteger=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 261: | Line 274: | ||
+ | ===GetPayloadFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 274: | Line 288: | ||
+ | ===GetPayloadString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 297: | Line 312: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:50, 3 February 2023
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.
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
ErrorAsString
![]() |
ErrorAsString |
![]() |
Error |
![]() |
Return |
PublishString
GetTopicID
![]() |
GetTopicID |
Compares the topic ID of the last received message with enabled IDs. Returns the topic ID received. | |
![]() |
Return |
Connect
![]() |
Connect |
Connect to the MQTT Server. Returns the connected state. 0 if not connected, 1 if successful connection, or already connected. | |
![]() |
Return |
GetPayloadInteger
![]() |
GetPayloadInteger |
Get the Payload of the last received (Read) packet as a signed long value | |
![]() |
Return |
LastError
![]() |
LastError |
Returns the last error | |
![]() |
Return |
Read
![]() |
Read |
Read incoming data. Returns non-zero if packet received. Use GetTopicID and GetPayloadXXX to read the contents. | |
![]() |
Return |
Disconnect
![]() |
Disconnect |
Disconnects from the MQTT server and the network | |
![]() |
Return |
PublishFloat
Ping
PublishInteger
GetPayloadFloat
![]() |
GetPayloadFloat |
Get the Payload of the last received (Read) packet as a floating point value | |
![]() |
Return |
GetPayloadString
![]() |
GetPayloadString |
Get the Payload of the last received (Read) packet as a string value | |
![]() |
Payload |
![]() |
Size |
![]() |
Return |
Initialise
![]() |
Initialise |
Starts up the MQTT component - call this after initialising the NetworkComms component. | |
![]() |
Return |