Difference between revisions of "Component: Bluetooth (HC05 / HC06) (Wireless)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 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_BTHC05.fcfx FC_Comp_Source_BTHC05.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_BTHC05.fcfx FC_Comp_Source_BTHC05.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 82: | Line 82: | ||
Outgoing data is assigned and sent using a keypad component. | Outgoing data is assigned and sent using a keypad component. | ||
{{Fcfile|HC05_Example.fcfx|HC05 Example}} | {{Fcfile|HC05_Example.fcfx|HC05 Example}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 279: | Line 283: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:08, 7 February 2023
Author | Matrix Ltd |
Version | 2.1 |
Category | Wireless |
Contents
Bluetooth (HC05 / HC06) component
Low level routines for controlling or interacting with a HC05 or HC06 Bluetooth module. Contains functions to allow the baud rate, bluetooth name and bluetooth key to be defined.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_BTHC05.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_BTHC05.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example Program that configures a HC05 / HC06 Bluetooth module and then allows a data connection to be established and utilised.
Incoming data will be displayed on an LCD.
Outgoing data is assigned and sent using a keypad component.
HC05 Example
Macro reference
Initialise
![]() |
Initialise |
Sets up the RS232 peripheral, must be called at the start of your program or at least before you start calling any other RS232 macros. | |
![]() |
Return |
ReceiveChar
![]() |
ReceiveChar |
Attempts to receive a single packet from the UART interface. | |
![]() |
Timeout |
Time to wait for valid data before returning, 0=Dont wait, 255=Wait forever. | |
![]() |
Return |
ReceiveString
![]() |
ReceiveString |
Attempts to receive a string of bytes from the UART interface. | |
![]() |
Timeout |
![]() |
NumBytes |
![]() |
Return |
SendChar
![]() |
SendChar |
Sends out a single packet from the UART interface. | |
![]() |
Char |
![]() |
Return |
SendCommand
![]() |
SendCommand |
Sends a command string to the HC05/HC06 module. | |
![]() |
Command |
![]() |
Return |
SendNumber
![]() |
SendNumber |
Sends out a number as an ASCII String from the UART interface. | |
[[File:]] - | Number |
![]() |
Return |
SendString
![]() |
SendString |
Sends out a string of bytes from the UART interface. | |
![]() |
Data |
![]() |
Return |
SetBaud
SetName
SetPairKey