Component: IrDA (EB012, MCP1250, MCP2120) (Wireless)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd. |
Version | 2.0 |
Category | Wireless |
Contents
IrDA (EB012, MCP1250, MCP2120) component
Low level routines for controlling a standard IrDA interface. Also available in the form of the EB012 IrDA E-block.
Detailed description
No detailed description exists yet for this component
Examples
Transmit
Basic example which repeatedly transmits a string of data via the IrDA interface. IrDA Transmit
Receive
Basic example which waits for any incoming data and then displays the data on the LCD. IrDA Receive
Downloadable macro reference
SendChar | |
Sends a byte character to the IrDA connection. | |
[[File:]] - | Char |
- VOID | Return |
ReceiveChar | |
Receives byte character from the IrDA connection. | |
[[File:]] - | Timeout |
Max amount of time in milliseconds to wait for data. | |
[[File:]] - | Return |
Initialise | |
Initialises the UART ready for IrDA data to be sent or received, | |
- VOID | Return |
Disconnect | |
Disconnects from the MQTT server and the network | |
- BYTE | Return |
Ping | |
Ping packet is sent to the Server and checks for a reply. Returns non-zero value if successful | |
- BYTE | Return |
GetPayload | |
Get the Payload of the last received (Read) packet. Returns the number of bytes for the Payload | |
- STRING | Payload |
- BYTE | Size |
Byte count the Payload buffer | |
- BYTE | Return |
Subscribe | |
Subscribe to a Topic. Must be Connected first Returns non-zero if successful | |
- STRING | Topic |
- BYTE | Return |
Unsubscribe | |
Unsubscribe from a Topic. Must be Connected first Returns non-zero if successful | |
- STRING | Topic |
- BYTE | Return |
Initialise | |
- VOID | Return |
GetPayloadString | |
Get the Payload of the last received (Read) packet as a string value | |
- STRING | Payload |
- BYTE | Size |
- BYTE | Return |
Initialise | |
Starts up the MQTT component - call this after initialising the NetworkComms component. | |
- VOID | Return |