API Description

Last Updated on : 2022-11-24 09:20:01download

The configuration file and functions in the Bluetooth SDK support functionality and features of four layers, namely the Port, Config, API, and Event. This topic briefly describes the contents of each layer, which requires your attention during the development process.

Layer Description
Port The abstract hardware interfaces that you need to port to your chip platform.
Config The configuration file. Edit the macros in this file based on the product features.
For example, specify whether to use the OS, enable logging, and configure device capabilities.
API The encapsulated APIs. Make API calls to manage Bluetooth communication.
tuya_ble_api.c and tuya_ble_api.h includes the API functions, which can be used directly without modification.
Callback The SDK sends data or events to the mobile app using messages or the registered callbacks.
Application Various applications help you extend product features.