Component: Is Sim (Matrix Tools)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Matrix Tools |
Contents
Is Sim component
A simple component designed to aid in detecting if the current code is running in simulation or on a microcontroller.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
Check |
Returns 0 if running on an embedded target or 1 if running in simulation runtime. | |
[[File:]] - | Return |
![]() |
Initialise |
Initialises the UART ready for IrDA data to be sent or received, | |
![]() |
Return |
![]() |
Disconnect |
Disconnects from the MQTT server and the network | |
![]() |
Return |
![]() |
Ping |
Ping packet is sent to the Server and checks for a reply. Returns non-zero value if successful | |
![]() |
Return |
![]() |
GetPayload |
Get the Payload of the last received (Read) packet. Returns the number of bytes for the Payload | |
![]() |
Payload |
![]() |
Size |
Byte count the Payload buffer | |
![]() |
Return |
![]() |
Subscribe |
Subscribe to a Topic. Must be Connected first Returns non-zero if successful | |
![]() |
Topic |
![]() |
Return |
![]() |
Unsubscribe |
Unsubscribe from a Topic. Must be Connected first Returns non-zero if successful | |
![]() |
Topic |
![]() |
Return |
![]() |
Initialise |
![]() |
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 |
Property reference
![]() |
Properties |
![]() |
Sim |
![]() |
Connections |
![]() |
Simulations |