IDF release/v4.0 08219f3cf

This commit is contained in:
me-no-dev
2020-01-25 14:51:58 +00:00
parent 8c723be135
commit 41ba143063
858 changed files with 37940 additions and 49396 deletions

View File

@ -14,8 +14,6 @@
#pragma once
#include <esp_gap_ble_api.h>
#include <protocomm.h>
#ifdef __cplusplus
@ -26,7 +24,8 @@ extern "C" {
* BLE device name cannot be larger than this value
* 31 bytes (max scan response size) - 1 byte (length) - 1 byte (type) = 29 bytes
*/
#define MAX_BLE_DEVNAME_LEN (ESP_BLE_SCAN_RSP_DATA_LEN_MAX - 2)
#define MAX_BLE_DEVNAME_LEN 29
#define BLE_UUID128_VAL_LENGTH 16
/**
* @brief This structure maps handler required by protocomm layer to
@ -49,7 +48,7 @@ typedef struct name_uuid {
/**
* @brief Config parameters for protocomm BLE service
*/
typedef struct {
typedef struct protocomm_ble_config {
/**
* BLE device name being broadcast at the time of provisioning
*/
@ -58,7 +57,7 @@ typedef struct {
/**
* 128 bit UUID of the provisioning service
*/
uint8_t service_uuid[ESP_UUID_LEN_128];
uint8_t service_uuid[BLE_UUID128_VAL_LENGTH];
/**
* Number of entries in the Name-UUID lookup table