Difference between revisions of "Component: Bluetooth (ESP32 SPP) (Wireless)"
From Flowcode Help
Jump to navigationJump to searchLine 32: | Line 32: | ||
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y | CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y | ||
− | |||
# CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY is not set | # CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY is not set | ||
Line 40: | Line 39: | ||
# CONFIG_BTDM_CTRL_MODE_BLE_ONLY is not set | # CONFIG_BTDM_CTRL_MODE_BLE_ONLY is not set | ||
− | |||
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y | CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y | ||
Revision as of 16:11, 22 November 2021
Author | Matrix TSL |
Version | 1.0 |
Category | Wireless |
Contents
Bluetooth (ESP32 SPP) component
Bluetooth slave component designed to run on a ESP32 providing legacy SPP functionality. BT Legacy functionality must be switched on via the sdkconfig file.
Detailed description
No detailed description exists yet for this component
Examples
The SPP legacy bluetooth mode must be enabled in the ESP32 config file to allow SSP to work. To do this open the sdkconfig file from the project build directory into a text editor.
Find this section in the file
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
- CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY is not set
And change to this.
Find this section in the file
- CONFIG_BTDM_CTRL_MODE_BLE_ONLY is not set
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=y
For problems sending strings, please see this forum topic.
Downloadable macro reference
![]() |
ReceiveByte |
Attempts to receive a byte from the bluetooth serial port. 0-255 = a valid received value 256 = a timeout has occured | |
![]() |
Timeout |
Number of ms to wait for incoming data | |
![]() |
Return |
![]() |
SendString |
Sends a string to the Bluetooth serial connection | |
![]() |
Data |
Data Array to send | |
![]() |
Return |
![]() |
CheckConnectionStatus |
Checks to see if the Bluetooth device is connected. Returns 1 if connected. | |
![]() |
Return |
![]() |
ReceiveCount |
Collects the number of bytes currently stored in the receive buffer. | |
![]() |
Return |
![]() |
SendArray |
Sends a byte to the Bluetooth serial connection | |
![]() |
Data |
Data Array to send | |
![]() |
NumBytes |
Number of bytes to send | |
![]() |
Return |
![]() |
SendByte |
Sends a byte to the Bluetooth serial connection | |
![]() |
Data |
![]() |
Return |
![]() |
ReceiveString |
![]() |
MaxBytes |
Max number of bytes to try and read within the time | |
![]() |
Timeout |
Number of ms to wait for incoming data | |
![]() |
Return |
![]() |
Initialise |
Starts up the Bluetooth communications SPP service. | |
![]() |
Return |