/*
* BLEUtils.cpp
*
* Created on: Mar 25, 2017
* Author: kolban
*/
#include "sdkconfig.h"
#if defined(CONFIG_BLUEDROID_ENABLED)
#include "BLEAddress.h"
#include "BLEClient.h"
#include "BLEUtils.h"
#include "BLEUUID.h"
#include "GeneralUtils.h"
#include <freertos/FreeRTOS.h>
#include <freertos/event_groups.h>
#include <esp_bt.h> // ESP32 BLE
#include <esp_bt_main.h> // ESP32 BLE
#include <esp_gap_ble_api.h> // ESP32 BLE
#include <esp_gattc_api.h> // ESP32 BLE
#include <esp_err.h> // ESP32 ESP-IDF
#include <map> // Part of C++ STL
#include <sstream>
#include <iomanip>
#include "esp32-hal-log.h"
/*
static std::map<std::string, BLEClient*> g_addressMap;
static std::map<uint16_t, BLEClient*> g_connIdMap;
*/
typedef struct {
uint32_t assignedNumber;
const char* name;
} member_t;
static const member_t members_ids[] = {
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
{0xFE08, "Microsoft"},
{0xFE09, "Pillsy, Inc."},
{0xFE0A, "ruwido austria gmbh"},
{0xFE0B, "ruwido austria gmbh"},
{0xFE0C, "Procter & Gamble"},
{0xFE0D, "Procter & Gamble"},
{0xFE0E, "Setec Pty Ltd"},
{0xFE0F, "Philips Lighting B.V."},
{0xFE10, "Lapis Semiconductor Co., Ltd."},
{0xFE11, "GMC-I Messtechnik GmbH"},
{0xFE12, "M-Way Solutions GmbH"},
{0xFE13, "Apple Inc."},
{0xFE14, "Flextronics International USA Inc."},
{0xFE15, "Amazon Fulfillment Services, Inc."},
{0xFE16, "Footmarks, Inc."},
{0xFE17, "Telit Wireless Solutions GmbH"},
{0xFE18, "Runtime, Inc."},
{0xFE19, "Google Inc."},
{0xFE1A, "Tyto Life LLC"},
{0xFE1B, "Tyto Life LLC"},
{0xFE1C, "NetMedia, Inc."},
{0xFE1D, "Illuminati Instrument Corporation"},
{0xFE1E, "Smart Innovations Co., Ltd"},
{0xFE1F, "Garmin International, Inc."},
{0xFE20, "Emerson"},
{0xFE21, "Bose Corporation"},
{0xFE22, "Zoll Medical Corporation"},
{0xFE23, "Zoll Medical Corporation"},
{0xFE24, "August Home Inc"},
{0xFE25, "Apple, Inc. "},
{0xFE26, "Google Inc."},
{0xFE27, "Google Inc."},
{0xFE28, "Ayla Networks"},
{0xFE29, "Gibson Innovations"},
{0xFE2A, "DaisyWorks, Inc."},
{0xFE2B, "ITT Industries"},
{0xFE2C, "Google Inc."},
{0xFE2D, "SMART INNOVATION Co.,Ltd"},
{0xFE2E, "ERi,Inc."},
{0xFE2F, "CRESCO Wireless, Inc"},
{0xFE30, "Volkswagen AG"},
{0xFE31, "Volkswagen AG"},
{0xFE32, "Pro-Mark, Inc."},
{0xFE33, "CHIPOLO d.o.o."},
{0xFE34, "SmallLoop LLC"},
{0xFE35, "HUAWEI Technologies Co., Ltd"},
{0xFE36, "HUAWEI Technologies Co., Ltd"},
{0xFE37, "Spaceek LTD"},
{0xFE38, "Spaceek LTD"},
{0xFE39, "TTS Tooltechnic Systems AG & Co. KG"},
{0xFE3A, "TTS Tooltechnic Systems AG & Co. KG"},
{0xFE3B, "Dolby Laboratories"},
{0xFE3C, "Alibaba"},
{0xFE3D, "BD Medical"},
{0xFE3E, "BD Medical"},
{0xFE3F, "Friday Labs Limited"},
{0xFE40, "Inugo Systems Limited"},
{0xFE41, "Inugo Systems Limited"},
{0xFE42, "Nets A/S "},
{0xFE43, "Andreas Stihl AG & Co. KG"},
{0xFE44, "SK Telecom "},
{0xFE45, "Snapchat Inc"},
{0xFE46, "B&O Play A/S "},
{0xFE47, "General Motors"},
{0xFE48, "General Motors"},
{0xFE49, "SenionLab AB"},
{0xFE4A, "OMRON HEALTHCARE Co., Ltd."},
{0xFE4B, "Philips Lighting B.V."},
{0xFE4C, "Volkswagen AG"},
{0xFE4D, "Casambi Technologies Oy"},
{0xFE4E, "NTT docomo"},
{0xFE4F, "Molekule, Inc."},
{0xFE50, "Google Inc."},
{0xFE51, "SRAM"},
{0xFE52, "SetPoint Medical"},
{0xFE53, "3M"},
{0xFE54, "Motiv, Inc."},
{0xFE55, "Google Inc."},
{0xFE56, "Google Inc."},
{0xFE57, "Dotted Labs"},
{0xFE58, "Nordic Semiconductor ASA"},
{0xFE59, "Nordic Semiconductor ASA"},
{0xFE5A, "Chronologics Corporation"},
{0xFE5B, "GT-tronics HK Ltd"},
{0xFE5C, "million hunters GmbH"},
{0xFE5D, "Grundfos A/S"},
{0xFE5E, "Plastc Corporation"},
{0xFE5F, "Eyefi, Inc."},
{0xFE60, "Lierda Science & Technology Group Co., Ltd."},
{0xFE61, "Logitech International SA"},
{0xFE62, "Indagem Tech LLC"},
{0xFE63, "Connected Yard, Inc."},
{0xFE64, "Siemens AG"},
{0xFE65, "CHIPOLO d.o.o."},
{0xFE66, "Intel Corporation"},
{0xFE67, "Lab Sensor Solutions"},
{0xFE68, "Qualcomm Life Inc"},
{0xFE69, "Qualcomm Life Inc"},
{0xFE6A, "Kontakt Micro-Location Sp. z o.o."},
{0xFE6B, "TASER International, Inc."},
{0xFE6C, "TASER International, Inc."},
{0xFE6D, "The University of Tokyo"},
{0xFE6E, "The University of Tokyo"},
{0xFE6F, "LINE Corporation"},
{0xFE70, "Beijing Jingdong Century Trading Co., Ltd."},
{0xFE71, "Plume Design Inc"},
{0xFE72, "St. Jude Medical, Inc."},
{0xFE73, "St. Jude Medical, Inc."},
{0xFE74, "unwire"},
{0xFE75, "TangoMe"},
{0xFE76, "TangoMe"},
{0xFE77, "Hewlett-Packard Company"},
{0xFE78, "Hewlett-Packard Company"},
{0xFE79, "Zebra Technologies"},
{0xFE7A, "Bragi GmbH"},
{0xFE7B, "Orion Labs, Inc."},
{0xFE7C, "Telit Wireless Solutions (Formerly Stollmann E+V GmbH)"},
{0xFE7D, "Aterica Health Inc."},
{0xFE7E, "Awear Solutions Ltd"},
{0xFE7F, "Doppler Lab"},
{0xFE80, "Doppler Lab"},
{0xFE81, "Medtronic Inc."},
{0xFE82, "Medtronic Inc."},
{0xFE83, "Blue Bite"},
{0xFE84, "RF Digital Corp"},
{0xFE85, "RF Digital Corp"},
{0xFE86, "HUAWEI Technologies Co., Ltd. ( )"},
{0xFE87, "Qingdao Yeelink Information Technology Co., Ltd. ( )"},
{0xFE88, "SALTO SYSTEMS S.L."},
{0xFE89, "B&O Play A/S"},
{0xFE8A, "Apple, Inc."},
{0xFE8B, "Apple, Inc."},
{0xFE8C, "TRON Forum"},
{0xFE8D, "Interaxon Inc."},
{0xFE8E, "ARM Ltd"},
{0xFE8F, "CSR"},
{0xFE90, "JUMA"},
{0xFE91, "Shanghai Imilab Technology Co.,Ltd"},
{0xFE92, "Jarden Safety & Security"},
{0xFE93, "OttoQ Inc."},
{0xFE94, "OttoQ Inc."},
{0xFE95, "Xiaomi Inc."},
{0xFE96, "Tesla Motor Inc."},
{0xFE97, "Tesla Motor Inc."},
{0xFE98, "Currant, Inc."},
{0xFE99, "Currant, Inc."},
{0xFE9A, "Estimote"},
{0xFE9B, "Samsara Networks, Inc"},
{0xFE9C, "GSI Laboratories, Inc."},
{0xFE9D, "Mobiquity Networks Inc"},
{0xFE9E, "Dialog Semiconductor B.V."},
{0xFE9F, "Google Inc."},
{0xFEA0, "Google Inc."},
{0xFEA1, "Intrepid Control Systems, Inc."},
{0xFEA2, "Intrepid Control Systems, Inc."},
{0xFEA3, "ITT Industries"},
{0xFEA4, "Paxton Access Ltd"},
{0xFEA5, "GoPro, Inc."},
{0xFEA6, "GoPro, Inc."},
{0xFEA7, "UTC Fire and Security"},
{0xFEA8, "Savant Systems LLC"},
{0xFEA9, "Savant Systems LLC"},
{0xFEAA, "Google Inc."},
{0xFEAB, "Nokia Corporation"},
{0xFEAC, "Nokia Corporation"},
{0xFEAD, "Nokia Corporation"},
{0xFEAE, "Nokia Corporation"},
{0xFEAF, "Nest Labs Inc."},
{0xFEB0, "Nest Labs Inc."},
{0xFEB1, "Electronics Tomorrow Limited"},
{0xFEB2, "Microsoft Corporation"},
{0xFEB3, "Taobao"},
{0xFEB4, "WiSilica Inc."},
{0xFEB5, "WiSilica Inc."},
{0xFEB6, "Vencer Co, Ltd"},
{0xFEB7, "Facebook, Inc."},
{0xFEB8, "Facebook, Inc."},
{0xFEB9, "LG Electronics"},
{0xFEBA, "Tencent Holdings Limited"},
{0xFEBB, "adafruit industries"},
{0xFEBC, "Dexcom, Inc. "},
{0xFEBD, "Clover Network, Inc."},
{0xFEBE, "Bose Corporation"},
{0xFEBF, "Nod, Inc."},
{0xFEC0, "KDDI Corporation"},
{0xFEC1, "KDDI Corporation"},
{0xFEC2, "Blue Spark Technologies, Inc."},
{0xFEC3, "360fly, Inc."},
{0xFEC4, "PLUS Location Systems"},
{0xFEC5, "Realtek Semiconductor Corp."},
{0xFEC6, "Kocomojo, LLC"},
{0xFEC7, "Apple, Inc."},
{0xFEC8, "Apple, Inc."},
{0xFEC9, "Apple, Inc."},
{0xFECA, "Apple, Inc."},
{0xFECB, "Apple, Inc."},
{0xFECC, "Apple, Inc."},
{0xFECD, "Apple, Inc."},
{0xFECE, "Apple, Inc."},
{0xFECF, "Apple, Inc."},
{0xFED0, "Apple, Inc."},
{0xFED1, "Apple, Inc."},
{0xFED2, "Apple, Inc."},
{0xFED3, "Apple, Inc."},
{0xFED4, "Apple, Inc."},
{0xFED5, "Plantronics Inc."},
{0xFED6, "Broadcom Corporation"},
{0xFED7, "Broadcom Corporation"},
{0xFED8, "Google Inc."},
{0xFED9, "Pebble Technology Corporation"},
{0xFEDA, "ISSC Technologies Corporation"},
{0xFEDB, "Perka, Inc."},
{0xFEDC, "Jawbone"},
{0xFEDD, "Jawbone"},
{0xFEDE, "Coin, Inc."},
{0xFEDF, "Design SHIFT"},
{0xFEE0, "Anhui Huami Information Technology Co."},
{0xFEE1, "Anhui Huami Information Technology Co."},
{0xFEE2, "Anki, Inc."},
{0xFEE3, "Anki, Inc."},
{0xFEE4, "Nordic Semiconductor ASA"},
{
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ESP32-2.0.9离线包 (9977个子文件)
libbt.a 27.14MB
libbt.a 24.49MB
libbt.a 20.29MB
libmfn.a 18.47MB
libmfn.a 18.47MB
libmfn.a 18.47MB
libmfn.a 17.04MB
libdl.a 14.44MB
libdl.a 14.06MB
libdl.a 13.87MB
libdl.a 13.71MB
libwpa_supplicant.a 6.51MB
libmbedcrypto.a 5.94MB
libhuman_face_detect.a 5.9MB
libhuman_face_detect.a 5.9MB
libhuman_face_detect.a 5.9MB
libhuman_face_detect.a 5.38MB
libwakeword_model.a 5.37MB
liblwip.a 5.26MB
libdriver.a 5.04MB
libdriver.a 5.04MB
libdriver.a 4.93MB
libdriver.a 4.88MB
liblibsodium.a 4.71MB
libwpa_supplicant.a 4.52MB
libwpa_supplicant.a 4.51MB
libwpa_supplicant.a 4.5MB
libvoice_set_xiaole.a 4.46MB
libvoice_set_xiaole.a 4.34MB
libvoice_set_xiaole.a 4.34MB
libvoice_set_xiaole.a 4.34MB
libesp_audio_processor.a 4.11MB
liblwip.a 4.05MB
liblwip.a 4.05MB
liblwip.a 4.04MB
libmbedcrypto.a 4.02MB
libmbedcrypto.a 4.01MB
libmbedcrypto.a 3.97MB
libdl_lib.a 3.88MB
liblibsodium.a 3.5MB
liblibsodium.a 3.5MB
liblibsodium.a 3.5MB
libcoap.a 3.17MB
libcat_face_detect.a 2.89MB
libcat_face_detect.a 2.89MB
libcat_face_detect.a 2.89MB
libfreemodbus.a 2.64MB
libcat_face_detect.a 2.64MB
libhal.a 2.59MB
libhal.a 2.55MB
libnghttp.a 2.55MB
libasio.a 2.46MB
libhal.a 2.42MB
libcoap.a 2.29MB
libcoap.a 2.29MB
libcoap.a 2.29MB
libespressif__esp-dsp.a 2.18MB
libesp_tts_chinese.a 2.15MB
libfreemodbus.a 2.15MB
libcolor_detect.a 2.15MB
libfreemodbus.a 2.08MB
libcolor_detect.a 2.07MB
libcolor_detect.a 2.07MB
libcolor_detect.a 2.07MB
libasio.a 2.03MB
libasio.a 2.03MB
libasio.a 2.02MB
libfreemodbus.a 2.01MB
libexpat.a 2MB
libesp32-camera.a 1.95MB
libhal.a 1.95MB
libesp_audio_processor.a 1.92MB
libesp_rainmaker.a 1.89MB
libesp32-camera.a 1.88MB
libesp32-camera.a 1.85MB
libnvs_flash.a 1.79MB
libespressif__esp-dsp.a 1.78MB
libmbedtls_2.a 1.78MB
libnghttp.a 1.75MB
libnghttp.a 1.75MB
libnghttp.a 1.74MB
libespressif__esp-dsp.a 1.67MB
libespressif__esp-dsp.a 1.64MB
libesp_hw_support.a 1.63MB
libesp_hw_support.a 1.6MB
libesp_hw_support.a 1.58MB
libspi_flash.a 1.58MB
libspi_flash.a 1.57MB
libspi_flash.a 1.57MB
libspi_flash.a 1.57MB
libesp_rainmaker.a 1.52MB
libesp_system.a 1.48MB
libesp_system.a 1.48MB
libesp_system.a 1.48MB
libesp_system.a 1.48MB
libesp_tts_chinese.a 1.47MB
libesp_system.a 1.47MB
libesp_system.a 1.47MB
libesp_system.a 1.47MB
libesp_tts_chinese.a 1.47MB
共 9977 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
资源评论
Miss-忘忧
- 粉丝: 41
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功