The existing Bluetooth examples are split as: 1. examples/bluetooth/bluedroid - Bluedroid Host (BT + BLE) examples a. examples/bluetooth/bluedroid/classic_bt - Classic BT examples b. examples/bluetooth/bluedroid/ble - BLE examples c. examples/bluetooth/bluedroid/coex - Classic BT and BLE coex examples d. examples/bluetooth/bluedroid/hci - VHCI and HCI UART examples i. Rename ble_adv to controller_vhci_ble_adv and move it in hci folder 2. examples/bluetooth/nimble - NimBLE BLE Host + NimBLE Mesh examples 3. examples/bluetooth/esp_ble_mesh - ESP BLE Mesh examples 4. Update documentation references
33 lines
604 B
C
33 lines
604 B
C
/*
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
*/
|
|
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
|
|
/* Attributes State Machine */
|
|
enum
|
|
{
|
|
IDX_SVC,
|
|
IDX_CHAR_A,
|
|
IDX_CHAR_VAL_A,
|
|
IDX_CHAR_CFG_A,
|
|
|
|
IDX_CHAR_B,
|
|
IDX_CHAR_VAL_B,
|
|
IDX_CHAR_CFG_B,
|
|
|
|
IDX_CHAR_C,
|
|
IDX_CHAR_VAL_C,
|
|
IDX_CHAR_CFG_C,
|
|
IDX_CHAR_CFG_C_2,
|
|
|
|
HRS_IDX_NB,
|
|
};
|