Component/bt: add BLE Compatibility Test demo

This commit is contained in:
zhiweijian
2018-11-20 20:19:55 +08:00
parent 3970ea60de
commit e9ee9384fc
7 changed files with 775 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/*
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,
};