Difference between revisions of "Component: Bluetooth (RN4677) (RN4677) (Wireless)"
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== | ||
+ | ===ReceiveByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 101: | Line 104: | ||
+ | ===SendString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 124: | Line 128: | ||
+ | ===LeaveCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 137: | Line 142: | ||
+ | ===ConnectToMAC=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 155: | Line 161: | ||
+ | ===SendCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 183: | Line 190: | ||
+ | ===ReadString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 201: | Line 209: | ||
+ | ===SendByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 219: | Line 228: | ||
+ | ===EnterCommandMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 232: | Line 242: | ||
+ | ===WaitForStringValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 255: | Line 266: | ||
+ | ===GetMACAddress=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 268: | Line 280: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:48, 3 February 2023
Author | Matrix Ltd. |
Version | 1.4 |
Category | Wireless |
Contents
Bluetooth (RN4677) 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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Bluetooth_RN4677.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Bluetooth_RN4677.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReceiveByte
SendString
![]() |
SendString |
Sends a string to the Bluetooth module. | |
![]() |
Text |
![]() |
SendCR |
![]() |
Return |
LeaveCommandMode
![]() |
LeaveCommandMode |
Leaves command mode allowing data to be passed back and forth, | |
![]() |
Return |
ConnectToMAC
SendCommand
ReadString
![]() |
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
![]() |
SendByte |
Sends a single data byte out to the Bluetooth module. | |
![]() |
Data |
![]() |
Return |
EnterCommandMode
![]() |
EnterCommandMode |
Enters command mode allowing commands to be sent using the SendCommand macro. Returns: 0 = No Reply / 1 = Command Mode OK | |
![]() |
Return |
WaitForStringValue
GetMACAddress
![]() |
GetMACAddress |
Gets the local Bluetooth device MAC address. | |
![]() |
Return |
Initialise
![]() |
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 |