Difference between revisions of "Component: Bluetooth (RN4677) (Wireless)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 102: | Line 106: | ||
| colspan="2" | MAC Address of the Bluetooth Device we wish to connect to | | colspan="2" | MAC Address of the Bluetooth Device we wish to connect to | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 179: | Line 183: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 202: | Line 206: | ||
| colspan="2" | Length of time to wait in milliseconds | | colspan="2" | Length of time to wait in milliseconds | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} |
Revision as of 13:27, 17 November 2021
Author | Matrix Ltd. |
Version | 1.4 |
Category | Wireless |
Contents
Bluetooth component
Low level routines for controlling a Microchip RN4677 Bluetooth Module. Also available in the form of the BL0170 Bluetooth E-block. Uses an interrupt to receive characters from the UART and improve reliability, Must be used with a hardware UART channel.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
SendString |
Sends a string to the Bluetooth module. | |
![]() |
Text |
![]() |
SendCR |
![]() |
Return |
![]() |
LeaveCommandMode |
Leaves command mode allowing data to be passed back and forth, | |
![]() |
Return |
![]() |
ReadString |
Copies the incoming data from the data string array to a local string variable. | |
![]() |
NumBytes |
Maximum number of bytes to try and read | |
![]() |
Return |
![]() |
SendByte |
Sends a single data byte out to the Bluetooth module. | |
![]() |
Data |
![]() |
Return |
![]() |
EnterCommandMode |
Enters command mode allowing commands to be sent using the SendCommand macro. Returns: 0 = No Reply / 1 = Command Mode OK | |
![]() |
Return |
![]() |
GetMACAddress |
Gets the local Bluetooth device MAC address. | |
![]() |
Return |
![]() |
Initialise |
Sets up the Bluetooth module including: - Enabling the UART - Configuring the module (Name / Key / etc) Returns 1 for OK and 0 for no reply. | |
![]() |
Return |