Difference between revisions of "Component: IoT Made Easy (Comms: IoT/Cloud)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_IoTMadeEasy.fcfx FC_Comp_Source_IoTMadeEasy.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_IoTMadeEasy.fcfx FC_Comp_Source_IoTMadeEasy.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 77: | Line 77: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Latest revision as of 13:11, 7 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
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 |