This basic example shows how to use Bluetooth with the OTX-18 module.
- Visual Studio Code
- OTX-Maestro >= 1.0.2
Bluetooth Low Energy (BLE) is used in very low-power network and Internet of Things (IoT) solutions using low-cost battery operated devices that can quickly connect and form simple wireless links. Target applications include HID, remote controls, sports and fitness monitors, portable medical devices and smart phone accessories, among many others.
PSoC 6 BLE Middleware contains a comprehensive API to configure the BLE Stack and the underlying chip hardware. PSoC 6 BLE Middleware incorporates a Bluetooth Core Specification v5.0 compliant protocol stack. You may access the GAP, GATT and L2CAP layers of the stack using the API.
The example uses PSoC Creator to make it easy to configure the PSoC 6 BLE Middleware. The BLE resource supports numerous GATT-based Profiles and Services. Each of these can be configured as either a GATT Client or GATT Server. It generates all the necessary code for a particular Profile/Service operation, as configured in the PSoC Creator.
This example demonstrates the the implementation of a Pheriperal GAP role and a GATT Server for exchanging data with a host. Additionally, the Device Information Service is used as an example to demonstrate how to configure the BLE service characteristics in the BLE Component.
The Windows based Host is found here and works with common BLE dongles and (built-in) adapters.