From 5a70ca15620b7d79cb38e57909d9c123b08ccd70 Mon Sep 17 00:00:00 2001
From: Jason2866 <24528715+Jason2866@users.noreply.github.com>
Date: Sat, 12 Feb 2022 20:01:12 +0100
Subject: [PATCH] NimBLE v1.36 (#14744)
---
lib/libesp32_div/NimBLE-Arduino/CHANGELOG.md | 11 +
.../docs/Command_line_config.md | 25 +
.../docs/Improvements_and_updates.md | 16 +-
.../examples/NimBLE_Server/NimBLE_Server.ino | 2 +-
lib/libesp32_div/NimBLE-Arduino/library.json | 2 +-
.../NimBLE-Arduino/library.properties | 2 +-
.../NimBLE-Arduino/src/HIDTypes.h | 9 +-
.../NimBLE-Arduino/src/NimBLE2904.cpp | 8 +-
.../NimBLE-Arduino/src/NimBLE2904.h | 8 +-
.../NimBLE-Arduino/src/NimBLEAddress.cpp | 2 +-
.../NimBLE-Arduino/src/NimBLEAddress.h | 7 +-
.../src/NimBLEAdvertisedDevice.cpp | 8 +-
.../src/NimBLEAdvertisedDevice.h | 13 +-
.../NimBLE-Arduino/src/NimBLEAdvertising.cpp | 19 +-
.../NimBLE-Arduino/src/NimBLEAdvertising.h | 13 +-
.../NimBLE-Arduino/src/NimBLEAttValue.h | 447 ++
.../NimBLE-Arduino/src/NimBLEBeacon.cpp | 2 +-
.../src/NimBLECharacteristic.cpp | 151 +-
.../NimBLE-Arduino/src/NimBLECharacteristic.h | 135 +-
.../NimBLE-Arduino/src/NimBLEClient.cpp | 70 +-
.../NimBLE-Arduino/src/NimBLEClient.h | 14 +-
.../NimBLE-Arduino/src/NimBLEDescriptor.cpp | 82 +-
.../NimBLE-Arduino/src/NimBLEDescriptor.h | 45 +-
.../NimBLE-Arduino/src/NimBLEDevice.cpp | 199 +-
.../NimBLE-Arduino/src/NimBLEDevice.h | 21 +-
.../NimBLE-Arduino/src/NimBLEEddystoneTLM.cpp | 16 +-
.../NimBLE-Arduino/src/NimBLEEddystoneTLM.h | 1 +
.../NimBLE-Arduino/src/NimBLEEddystoneURL.cpp | 2 +-
.../NimBLE-Arduino/src/NimBLEHIDDevice.cpp | 9 +-
.../NimBLE-Arduino/src/NimBLEHIDDevice.h | 9 +-
.../NimBLE-Arduino/src/NimBLELog.h | 98 +-
.../src/NimBLERemoteCharacteristic.cpp | 81 +-
.../src/NimBLERemoteCharacteristic.h | 118 +-
.../src/NimBLERemoteDescriptor.cpp | 80 +-
.../src/NimBLERemoteDescriptor.h | 78 +-
.../src/NimBLERemoteService.cpp | 21 +-
.../NimBLE-Arduino/src/NimBLERemoteService.h | 7 +-
.../NimBLE-Arduino/src/NimBLEScan.cpp | 10 +-
.../NimBLE-Arduino/src/NimBLEScan.h | 11 +-
.../NimBLE-Arduino/src/NimBLESecurity.cpp | 2 +-
.../NimBLE-Arduino/src/NimBLESecurity.h | 8 +-
.../NimBLE-Arduino/src/NimBLEServer.cpp | 59 +-
.../NimBLE-Arduino/src/NimBLEServer.h | 14 +-
.../NimBLE-Arduino/src/NimBLEService.cpp | 39 +-
.../NimBLE-Arduino/src/NimBLEService.h | 20 +-
.../NimBLE-Arduino/src/NimBLEUUID.cpp | 30 +-
.../NimBLE-Arduino/src/NimBLEUUID.h | 9 +-
.../NimBLE-Arduino/src/NimBLEUtils.cpp | 11 +-
.../NimBLE-Arduino/src/NimBLEUtils.h | 9 +-
.../NimBLE-Arduino/src/console/console.h | 21 -
.../NimBLE-Arduino/src/esp_compiler.h | 33 -
.../src/{ => nimble}/CODING_STANDARDS.md | 0
.../NimBLE-Arduino/src/nimble/LICENSE | 217 +
.../NimBLE-Arduino/src/{ => nimble}/NOTICE | 3 +-
.../NimBLE-Arduino/src/{ => nimble}/README.md | 16 +-
.../src/{ => nimble}/RELEASE_NOTES.md | 20 +-
.../src/nimble/console/console.h | 16 +
.../esp_port/esp-hci/include/esp_compiler.h | 51 +
.../esp-hci/include}/esp_nimble_hci.h | 4 +-
.../esp_port}/esp-hci/src/esp_nimble_hci.c | 36 +-
.../esp_port/port/include}/esp_nimble_cfg.h | 0
.../esp_port/port/include}/esp_nimble_mem.h | 0
.../esp_port}/port/src/esp_nimble_mem.c | 4 +-
.../src/{ => nimble}/ext/tinycrypt/AUTHORS | 0
.../src/{ => nimble}/ext/tinycrypt/LICENSE | 0
.../src/{ => nimble}/ext/tinycrypt/README | 0
.../src/{ => nimble}/ext/tinycrypt/VERSION | 0
.../ext/tinycrypt/documentation/tinycrypt.rst | 0
.../ext/tinycrypt/include}/tinycrypt/aes.h | 0
.../tinycrypt/include}/tinycrypt/cbc_mode.h | 2 +-
.../tinycrypt/include}/tinycrypt/ccm_mode.h | 2 +-
.../tinycrypt/include}/tinycrypt/cmac_mode.h | 2 +-
.../tinycrypt/include}/tinycrypt/constants.h | 0
.../tinycrypt/include}/tinycrypt/ctr_mode.h | 4 +-
.../tinycrypt/include}/tinycrypt/ctr_prng.h | 2 +-
.../ext/tinycrypt/include}/tinycrypt/ecc.h | 0
.../ext/tinycrypt/include}/tinycrypt/ecc_dh.h | 2 +-
.../tinycrypt/include}/tinycrypt/ecc_dsa.h | 2 +-
.../tinycrypt/ecc_platform_specific.h | 0
.../ext/tinycrypt/include}/tinycrypt/hmac.h | 2 +-
.../tinycrypt/include}/tinycrypt/hmac_prng.h | 4 +-
.../ext/tinycrypt/include}/tinycrypt/sha256.h | 0
.../ext/tinycrypt/include}/tinycrypt/utils.h | 0
.../ext/tinycrypt/src/aes_decrypt.c | 6 +-
.../ext/tinycrypt/src/aes_encrypt.c | 6 +-
.../{ => nimble}/ext/tinycrypt/src/cbc_mode.c | 6 +-
.../{ => nimble}/ext/tinycrypt/src/ccm_mode.c | 6 +-
.../ext/tinycrypt/src/cmac_mode.c | 8 +-
.../{ => nimble}/ext/tinycrypt/src/ctr_mode.c | 6 +-
.../{ => nimble}/ext/tinycrypt/src/ctr_prng.c | 6 +-
.../src/{ => nimble}/ext/tinycrypt/src/ecc.c | 4 +-
.../{ => nimble}/ext/tinycrypt/src/ecc_dh.c | 6 +-
.../{ => nimble}/ext/tinycrypt/src/ecc_dsa.c | 6 +-
.../ext/tinycrypt/src/ecc_platform_specific.c | 0
.../src/{ => nimble}/ext/tinycrypt/src/hmac.c | 6 +-
.../ext/tinycrypt/src/hmac_prng.c | 8 +-
.../{ => nimble}/ext/tinycrypt/src/sha256.c | 6 +-
.../{ => nimble}/ext/tinycrypt/src/utils.c | 4 +-
.../src/nimble/host/mesh/src/ble_att_priv.h | 307 -
.../nimble/host/mesh/src/ble_hs_conn_priv.h | 128 -
.../nimble/host/mesh/src/ble_l2cap_coc_priv.h | 85 -
.../src/nimble/host/mesh/src/ble_l2cap_priv.h | 125 -
.../nimble/host/mesh/src/ble_l2cap_sig_priv.h | 124 -
.../nimble/host/mesh/src/src/ble_att_priv.h | 301 -
.../nimble/host/mesh/src/src/ble_gatt_priv.h | 199 -
.../host/mesh/src/src/ble_hs_hci_priv.h | 124 -
.../host/mesh/src/src/ble_l2cap_coc_priv.h | 106 -
.../nimble/host/mesh/src/src/ble_l2cap_priv.h | 144 -
.../host/mesh/src/src/ble_l2cap_sig_priv.h | 184 -
.../nimble/host/mesh/src/src/ble_sm_priv.h | 428 --
.../src/nimble/host/mesh/src/testing.c | 200 -
.../src/nimble/host/mesh/src/testing.h | 23 -
.../src/nimble/host/src/ble_att_cmd_priv.h | 449 --
.../src/nimble/host/src/ble_gap_priv.h | 154 -
.../src/nimble/host/src/ble_gatt_priv.h | 199 -
.../src/nimble/host/src/ble_hs_adv_priv.h | 36 -
.../src/nimble/host/src/ble_hs_conn_priv.h | 148 -
.../src/nimble/host/src/ble_hs_hci_priv.h | 124 -
.../src/nimble/host/src/ble_hs_id_priv.h | 45 -
.../host/src/ble_hs_periodic_sync_priv.h | 55 -
.../src/nimble/host/src/ble_hs_priv.h | 157 -
.../src/nimble/host/src/ble_hs_resolv_priv.h | 111 -
.../src/nimble/host/src/ble_monitor_priv.h | 100 -
.../nimble/host/store/ram/src/ble_store_ram.c | 497 --
.../controller/include/controller/ble_hw.h | 116 +
.../controller/include/controller/ble_ll.h | 584 ++
.../include/controller/ble_ll_adv.h | 209 +
.../include/controller/ble_ll_conn.h | 425 ++
.../include/controller/ble_ll_ctrl.h | 313 +
.../include/controller/ble_ll_hci.h | 75 +
.../include/controller/ble_ll_resolv.h | 116 +
.../include/controller/ble_ll_rfmgmt.h | 63 +
.../include/controller/ble_ll_scan.h | 293 +
.../include/controller/ble_ll_sched.h | 216 +
.../include/controller/ble_ll_sync.h | 74 +
.../include/controller/ble_ll_test.h} | 8 +-
.../include/controller/ble_ll_trace.h | 96 +
.../include/controller/ble_ll_utils.h} | 27 +-
.../include/controller/ble_ll_whitelist.h} | 36 +-
.../controller/include/controller/ble_phy.h | 242 +
.../include/controller/ble_phy_trace.h | 96 +
.../src/nimble/nimble/controller/pkg.yml | 38 +
.../src/nimble/nimble/controller/src/ble_ll.c | 1723 ++++++
.../nimble/nimble/controller/src/ble_ll_adv.c | 5143 +++++++++++++++++
.../nimble/controller/src/ble_ll_conn.c | 4279 ++++++++++++++
.../nimble/controller/src/ble_ll_conn_hci.c | 1898 ++++++
.../nimble/controller/src/ble_ll_conn_priv.h | 226 +
.../nimble/controller/src/ble_ll_ctrl.c | 2748 +++++++++
.../nimble/nimble/controller/src/ble_ll_dtm.c | 728 +++
.../controller/src/ble_ll_dtm_priv.h} | 37 +-
.../nimble/nimble/controller/src/ble_ll_hci.c | 1519 +++++
.../nimble/controller/src/ble_ll_hci_ev.c | 526 ++
.../controller/src/ble_ll_priv.h} | 34 +-
.../nimble/controller/src/ble_ll_rand.c | 188 +
.../nimble/controller/src/ble_ll_resolv.c | 755 +++
.../nimble/controller/src/ble_ll_rfmgmt.c | 349 ++
.../nimble/controller/src/ble_ll_scan.c | 3981 +++++++++++++
.../nimble/controller/src/ble_ll_sched.c | 1838 ++++++
.../nimble/controller/src/ble_ll_supp_cmd.c | 461 ++
.../nimble/controller/src/ble_ll_sync.c | 2248 +++++++
.../nimble/controller/src/ble_ll_trace.c | 56 +
.../nimble/controller/src/ble_ll_utils.c | 303 +
.../nimble/controller/src/ble_ll_whitelist.c | 297 +
.../src/nimble/nimble/controller/syscfg.yml | 434 ++
.../drivers/nrf51/include/ble/xcvr.h} | 33 +-
.../src/nimble/nimble/drivers/nrf51/pkg.yml | 31 +
.../nimble/nimble/drivers/nrf51/src/ble_hw.c | 491 ++
.../nimble/nimble/drivers/nrf51/src/ble_phy.c | 1527 +++++
.../nimble/drivers/nrf52/include/ble/xcvr.h | 55 +
.../src/nimble/nimble/drivers/nrf52/pkg.yml | 31 +
.../nimble/nimble/drivers/nrf52/src/ble_hw.c | 491 ++
.../nimble/nimble/drivers/nrf52/src/ble_phy.c | 2120 +++++++
.../nimble/drivers/nrf52/src/ble_phy_trace.c | 47 +
.../nimble/nimble/drivers/nrf52/syscfg.yml | 75 +
.../nimble/host/include}/host/ble_att.h | 2 +-
.../nimble/host/include}/host/ble_eddystone.h | 0
.../nimble/host/include}/host/ble_gap.h | 22 +-
.../nimble/host/include}/host/ble_gatt.h | 4 +-
.../nimble/host/include}/host/ble_hs.h | 34 +-
.../nimble/host/include}/host/ble_hs_adv.h | 2 +-
.../nimble/host/include}/host/ble_hs_hci.h | 0
.../nimble/host/include}/host/ble_hs_id.h | 2 +-
.../nimble/host/include}/host/ble_hs_log.h | 4 +-
.../nimble/host/include}/host/ble_hs_mbuf.h | 0
.../nimble/host/include}/host/ble_hs_pvcy.h | 2 +-
.../nimble/host/include}/host/ble_hs_stop.h | 0
.../nimble/host/include}/host/ble_ibeacon.h | 0
.../nimble/host/include}/host/ble_l2cap.h | 2 +-
.../nimble/host/include}/host/ble_monitor.h | 2 +-
.../nimble/host/include}/host/ble_sm.h | 2 +-
.../nimble/host/include}/host/ble_store.h | 2 +-
.../nimble/host/include}/host/ble_uuid.h | 0
.../nimble/host/mesh/include}/mesh/access.h | 0
.../nimble/host/mesh/include}/mesh/cfg_cli.h | 0
.../nimble/host/mesh/include}/mesh/cfg_srv.h | 0
.../nimble/host/mesh/include}/mesh/glue.h | 35 +-
.../host/mesh/include}/mesh/health_cli.h | 0
.../host/mesh/include}/mesh/health_srv.h | 0
.../nimble/host/mesh/include}/mesh/main.h | 0
.../nimble/host/mesh/include}/mesh/mesh.h | 4 +-
.../host/mesh/include}/mesh/model_cli.h | 0
.../host/mesh/include}/mesh/model_srv.h | 0
.../nimble/host/mesh/include}/mesh/porting.h | 0
.../nimble/host/mesh/include}/mesh/proxy.h | 0
.../nimble/host/mesh/include}/mesh/slist.h | 0
.../nimble/host/mesh/include}/mesh/testing.h | 0
.../src/nimble/nimble/host/mesh/pkg.yml | 49 +
.../{ => nimble}/host/mesh/src/access.c | 11 +-
.../{ => nimble}/host/mesh/src/access.h | 2 +-
.../nimble/{ => nimble}/host/mesh/src/adv.c | 23 +-
.../nimble/{ => nimble}/host/mesh/src/adv.h | 2 +-
.../{ => nimble}/host/mesh/src/atomic.h | 0
.../{ => nimble}/host/mesh/src/beacon.c | 9 +-
.../{ => nimble}/host/mesh/src/beacon.h | 2 +-
.../{ => nimble}/host/mesh/src/cfg_cli.c | 7 +-
.../{ => nimble}/host/mesh/src/cfg_srv.c | 7 +-
.../{ => nimble}/host/mesh/src/crypto.c | 16 +-
.../{ => nimble}/host/mesh/src/crypto.h | 2 +-
.../{ => nimble}/host/mesh/src/foundation.h | 0
.../{ => nimble}/host/mesh/src/friend.c | 11 +-
.../{ => nimble}/host/mesh/src/friend.h | 2 +-
.../nimble/{ => nimble}/host/mesh/src/glue.c | 10 +-
.../{ => nimble}/host/mesh/src/health_cli.c | 9 +-
.../{ => nimble}/host/mesh/src/health_srv.c | 7 +-
.../{ => nimble}/host/mesh/src/light_model.c | 9 +-
.../{ => nimble}/host/mesh/src/light_model.h | 4 +-
.../nimble/{ => nimble}/host/mesh/src/lpn.c | 7 +-
.../nimble/{ => nimble}/host/mesh/src/lpn.h | 2 +-
.../nimble/{ => nimble}/host/mesh/src/mesh.c | 11 +-
.../{ => nimble}/host/mesh/src/mesh_priv.h | 0
.../{ => nimble}/host/mesh/src/model_cli.c | 10 +-
.../{ => nimble}/host/mesh/src/model_srv.c | 9 +-
.../nimble/{ => nimble}/host/mesh/src/net.c | 38 +-
.../nimble/{ => nimble}/host/mesh/src/net.h | 4 +-
.../nimble/{ => nimble}/host/mesh/src/nodes.c | 7 +-
.../nimble/{ => nimble}/host/mesh/src/nodes.h | 0
.../nimble/{ => nimble}/host/mesh/src/prov.c | 7 +-
.../nimble/{ => nimble}/host/mesh/src/prov.h | 6 +-
.../nimble/{ => nimble}/host/mesh/src/proxy.c | 13 +-
.../nimble/{ => nimble}/host/mesh/src/proxy.h | 2 +-
.../{ => nimble}/host/mesh/src/settings.c | 9 +-
.../{ => nimble}/host/mesh/src/settings.h | 0
.../nimble/{ => nimble}/host/mesh/src/shell.c | 4 +-
.../nimble/{ => nimble}/host/mesh/src/shell.h | 0
.../{ => nimble}/host/mesh/src/transport.c | 7 +-
.../{ => nimble}/host/mesh/src/transport.h | 4 +-
.../src/nimble/nimble/host/mesh/syscfg.yml | 661 +++
.../src/nimble/nimble/host/pkg.yml | 55 +
.../src/nimble/nimble/host/pts/README.txt | 8 +
.../src/nimble/nimble/host/pts/pts-gap.txt | 367 ++
.../src/nimble/nimble/host/pts/pts-gatt.txt | 508 ++
.../src/nimble/nimble/host/pts/pts-l2cap.txt | 304 +
.../src/nimble/nimble/host/pts/pts-sm.txt | 310 +
.../host/pts/tpg/94654-20170317-085122560.tpg | 1026 ++++
.../host/pts/tpg/94654-20170317-085441153.pts | 289 +
.../ans/include}/services/ans/ble_svc_ans.h | 0
.../nimble/nimble/host/services/ans/pkg.yml | 34 +
.../host/services/ans/src/ble_svc_ans.c | 10 +-
.../nimble/host/services/ans/syscfg.yml | 30 +
.../bas/include}/services/bas/ble_svc_bas.h | 0
.../nimble/nimble/host/services/bas/pkg.yml | 34 +
.../host/services/bas/src/ble_svc_bas.c | 10 +-
.../nimble/host/services/bas/syscfg.yml | 34 +
.../dis/include/services/dis/ble_svc_dis.h | 113 +
.../nimble/nimble/host/services/dis/pkg.yml | 34 +
.../host/services/dis/src/ble_svc_dis.c | 331 ++
.../nimble/host/services/dis/syscfg.yml | 109 +
.../gap/include}/services/gap/ble_svc_gap.h | 0
.../nimble/nimble/host/services/gap/pkg.yml | 34 +
.../host/services/gap/src/ble_svc_gap.c | 8 +-
.../nimble/host/services/gap/syscfg.yml | 83 +
.../include}/services/gatt/ble_svc_gatt.h | 0
.../nimble/nimble/host/services/gatt/pkg.yml | 34 +
.../host/services/gatt/src/ble_svc_gatt.c | 6 +-
.../nimble/host/services/gatt/syscfg.yml | 24 +
.../ias/include}/services/ias/ble_svc_ias.h | 0
.../nimble/nimble/host/services/ias/pkg.yml | 34 +
.../host/services/ias/src/ble_svc_ias.c | 6 +-
.../nimble/host/services/ias/syscfg.yml | 23 +
.../include}/services/ipss/ble_svc_ipss.h | 0
.../nimble/nimble/host/services/ipss/pkg.yml | 35 +
.../host/services/ipss/src/ble_svc_ipss.c | 6 +-
.../nimble/host/services/ipss/syscfg.yml | 24 +
.../lls/include}/services/lls/ble_svc_lls.h | 0
.../nimble/nimble/host/services/lls/pkg.yml | 34 +
.../host/services/lls/src/ble_svc_lls.c | 6 +-
.../nimble/host/services/lls/syscfg.yml | 22 +
.../tps/include}/services/tps/ble_svc_tps.h | 0
.../nimble/nimble/host/services/tps/pkg.yml | 34 +
.../host/services/tps/src/ble_svc_tps.c | 10 +-
.../nimble/host/services/tps/syscfg.yml | 23 +
.../nimble/{ => nimble}/host/src/ble_att.c | 0
.../{ => nimble}/host/src/ble_att_clt.c | 6 +-
.../{ => nimble}/host/src/ble_att_cmd.c | 8 +-
.../host}/src/ble_att_cmd_priv.h | 2 +-
.../{ => nimble}/host/src/ble_att_priv.h | 8 +-
.../{ => nimble}/host/src/ble_att_svr.c | 19 +-
.../{ => nimble}/host/src/ble_eddystone.c | 6 +-
.../nimble/{ => nimble}/host/src/ble_gap.c | 16 +-
.../src => nimble/host}/src/ble_gap_priv.h | 6 +-
.../mesh => nimble/host}/src/ble_gatt_priv.h | 6 +-
.../nimble/{ => nimble}/host/src/ble_gattc.c | 8 +-
.../nimble/{ => nimble}/host/src/ble_gatts.c | 31 +-
.../{ => nimble}/host/src/ble_gatts_lcl.c | 6 +-
.../src/nimble/{ => nimble}/host/src/ble_hs.c | 22 +-
.../nimble/{ => nimble}/host/src/ble_hs_adv.c | 4 +-
.../src => nimble/host}/src/ble_hs_adv_priv.h | 0
.../{ => nimble}/host/src/ble_hs_atomic.c | 0
.../host}/src/ble_hs_atomic_priv.h | 0
.../nimble/{ => nimble}/host/src/ble_hs_cfg.c | 4 +-
.../{ => nimble}/host/src/ble_hs_conn.c | 6 +-
.../host}/src/ble_hs_conn_priv.h | 0
.../{ => nimble}/host/src/ble_hs_flow.c | 4 +-
.../host}/src/ble_hs_flow_priv.h | 0
.../nimble/{ => nimble}/host/src/ble_hs_hci.c | 8 +-
.../{ => nimble}/host/src/ble_hs_hci_cmd.c | 59 +-
.../{ => nimble}/host/src/ble_hs_hci_evt.c | 10 +-
.../tps => nimble/host}/src/ble_hs_hci_priv.h | 2 +-
.../{ => nimble}/host/src/ble_hs_hci_util.c | 4 +-
.../nimble/{ => nimble}/host/src/ble_hs_id.c | 2 +-
.../src => nimble/host}/src/ble_hs_id_priv.h | 0
.../nimble/{ => nimble}/host/src/ble_hs_log.c | 4 +-
.../{ => nimble}/host/src/ble_hs_mbuf.c | 2 +-
.../host}/src/ble_hs_mbuf_priv.h | 0
.../{ => nimble}/host/src/ble_hs_misc.c | 2 +-
.../{ => nimble}/host/src/ble_hs_mqueue.c | 0
.../host/src/ble_hs_periodic_sync.c | 6 +-
.../host}/src/ble_hs_periodic_sync_priv.h | 2 +-
.../src => nimble/host}/src/ble_hs_priv.h | 8 +-
.../{ => nimble}/host/src/ble_hs_pvcy.c | 4 +-
.../host}/src/ble_hs_pvcy_priv.h | 0
.../{ => nimble}/host/src/ble_hs_resolv.c | 10 +-
.../host}/src/ble_hs_resolv_priv.h | 0
.../{ => nimble}/host/src/ble_hs_shutdown.c | 2 +-
.../{ => nimble}/host/src/ble_hs_startup.c | 4 +-
.../host}/src/ble_hs_startup_priv.h | 0
.../{ => nimble}/host/src/ble_hs_stop.c | 8 +-
.../{ => nimble}/host/src/ble_ibeacon.c | 2 +-
.../nimble/{ => nimble}/host/src/ble_l2cap.c | 8 +-
.../{ => nimble}/host/src/ble_l2cap_coc.c | 2 +-
.../host/src/ble_l2cap_coc_priv.h | 8 +-
.../{ => nimble}/host/src/ble_l2cap_priv.h | 8 +-
.../{ => nimble}/host/src/ble_l2cap_sig.c | 4 +-
.../{ => nimble}/host/src/ble_l2cap_sig_cmd.c | 0
.../host/src/ble_l2cap_sig_priv.h | 2 +-
.../{ => nimble}/host/src/ble_monitor.c | 8 +-
.../host}/src/ble_monitor_priv.h | 0
.../src/nimble/{ => nimble}/host/src/ble_sm.c | 6 +-
.../nimble/{ => nimble}/host/src/ble_sm_alg.c | 16 +-
.../nimble/{ => nimble}/host/src/ble_sm_cmd.c | 6 +-
.../{ => nimble}/host/src/ble_sm_lgcy.c | 6 +-
.../{ => nimble}/host/src/ble_sm_priv.h | 6 +-
.../nimble/{ => nimble}/host/src/ble_sm_sc.c | 4 +-
.../nimble/{ => nimble}/host/src/ble_store.c | 2 +-
.../{ => nimble}/host/src/ble_store_util.c | 2 +-
.../nimble/{ => nimble}/host/src/ble_uuid.c | 6 +-
.../src => nimble/host}/src/ble_uuid_priv.h | 2 +-
.../include}/store/config/ble_store_config.h | 0
.../nimble/nimble/host/store/config/pkg.yml | 38 +
.../host/store/config/src/ble_store_config.c | 8 +-
.../store/config/src/ble_store_config_conf.c | 296 +
.../store/config/src/ble_store_config_priv.h | 0
.../host/store/config/src/ble_store_nvs.c | 11 +-
.../nimble/host/store/config/syscfg.yml | 27 +
.../src/nimble/nimble/host/syscfg.yml | 471 ++
.../nimble/nimble/host/tools/log2smtest.rb | 1029 ++++
.../host/util/include}/host/util/util.h | 0
.../src/nimble/nimble/host/util/pkg.yml | 29 +
.../nimble/{ => nimble}/host/util/src/addr.c | 6 +-
.../src/nimble/nimble/host/util/syscfg.yml | 19 +
.../nimble/{ => nimble/include/nimble}/ble.h | 4 +-
.../include/nimble}/ble_hci_trans.h | 2 +-
.../{ => nimble/include/nimble}/hci_common.h | 0
.../{ => nimble/include/nimble}/nimble_npl.h | 5 +-
.../{ => nimble/include/nimble}/nimble_opt.h | 2 +-
.../include/nimble}/nimble_opt_auto.h | 2 +-
.../NimBLE-Arduino/src/nimble/nimble/pkg.yml | 30 +
.../src/nimble/nimble/syscfg.yml | 83 +
.../src/nimble/nimble/transport/pkg.yml | 45 +
.../ram/include/transport/ram/ble_hci_ram.h} | 11 +-
.../src/nimble/nimble/transport/ram/pkg.yml | 36 +
.../nimble/transport/ram/src/ble_hci_ram.c | 241 +
.../nimble/nimble/transport/ram/syscfg.yml | 48 +
.../src/nimble/nimble/transport/syscfg.yml | 68 +
.../porting/nimble/include}/hal/hal_timer.h | 2 +-
.../porting/nimble/include}/log/log.h | 0
.../nimble/include}/log_common/ignore.h | 0
.../nimble/include}/log_common/log_common.h | 2 +-
.../porting/nimble/include}/logcfg/logcfg.h | 5 +-
.../porting/nimble/include}/mem/mem.h | 0
.../porting/nimble/include}/modlog/modlog.h | 60 +-
.../nimble/include/nimble}/nimble_port.h | 9 +-
.../porting/nimble/include}/os/endian.h | 0
.../porting/nimble/include}/os/os.h | 14 +-
.../porting/nimble/include}/os/os_cputime.h | 6 +-
.../porting/nimble/include}/os/os_error.h | 2 +-
.../porting/nimble/include}/os/os_mbuf.h | 2 +-
.../porting/nimble/include}/os/os_mempool.h | 4 +-
.../porting/nimble/include}/os/os_trace_api.h | 0
.../porting/nimble/include}/os/queue.h | 0
.../porting/nimble/include}/os/util.h | 0
.../porting/nimble/include}/stats/stats.h | 0
.../porting/nimble/include}/syscfg/syscfg.h | 6 +-
.../nimble/include}/sysflash/sysflash.h | 0
.../porting/nimble/include}/sysinit/sysinit.h | 0
.../{ => nimble}/porting/nimble/src/endian.c | 2 +-
.../porting/nimble/src/hal_timer.c | 11 +-
.../src/{ => nimble}/porting/nimble/src/mem.c | 25 +-
.../porting/nimble/src/nimble_port.c | 22 +-
.../porting/nimble/src/os_cputime.c | 6 +-
.../porting/nimble/src/os_cputime_pwr2.c | 2 +-
.../{ => nimble}/porting/nimble/src/os_mbuf.c | 2 +-
.../porting/nimble/src/os_mempool.c | 2 +-
.../porting/nimble/src/os_msys_init.c | 19 +-
.../freertos/include/nimble}/nimble_npl_os.h | 52 +-
.../include/nimble}/nimble_port_freertos.h | 6 +-
.../freertos/include/nimble}/npl_freertos.h | 8 +-
.../npl/freertos/src/nimble_port_freertos.c | 40 +-
.../npl/freertos/src/npl_os_freertos.c | 205 +-
.../NimBLE-Arduino/src/nimconfig.h | 49 +-
.../NimBLE-Arduino/src/src/ble_hs_hci_priv.h | 124 -
.../NimBLE-Arduino/src/src/ble_sm_priv.h | 428 --
.../src/store/ram/ble_store_ram.h | 39 -
.../NimBLE-Arduino/src/tinycrypt/AUTHORS | 15 -
.../NimBLE-Arduino/src/tinycrypt/LICENSE | 61 -
.../NimBLE-Arduino/src/tinycrypt/README | 71 -
.../NimBLE-Arduino/src/tinycrypt/VERSION | 1 -
.../src/tinycrypt/documentation/tinycrypt.rst | 352 --
.../NimBLE-Arduino/tasmota_lib_changes.md | 38 +-
pio-tools/obj-dump.py | 2 +
platformio_tasmota_cenv_sample.ini | 3 +-
tasmota/xdrv_79_esp32_ble.ino | 2 +-
tasmota/xsns_62_esp32_mi.ino | 2 +-
tasmota/xsns_62_esp32_mi_ble.ino | 2 +-
434 files changed, 47577 insertions(+), 7020 deletions(-)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/NimBLEAttValue.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/console/console.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/esp_compiler.h
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/CODING_STANDARDS.md (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/LICENSE
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/NOTICE (61%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/README.md (90%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/RELEASE_NOTES.md (56%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/console/console.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/esp-hci/include/esp_compiler.h
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/esp_port/esp-hci/include}/esp_nimble_hci.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/esp_port}/esp-hci/src/esp_nimble_hci.c (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/esp_port/port/include}/esp_nimble_cfg.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/esp_port/port/include}/esp_nimble_mem.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/esp_port}/port/src/esp_nimble_mem.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/AUTHORS (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/LICENSE (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/README (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/VERSION (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/documentation/tinycrypt.rst (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/aes.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/cbc_mode.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ccm_mode.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/cmac_mode.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/constants.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ctr_mode.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ctr_prng.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ecc.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ecc_dh.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ecc_dsa.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/ecc_platform_specific.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/hmac.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/hmac_prng.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/sha256.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/ext/tinycrypt/include}/tinycrypt/utils.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/aes_decrypt.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/aes_encrypt.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/cbc_mode.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ccm_mode.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/cmac_mode.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ctr_mode.c (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ctr_prng.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ecc.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ecc_dh.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ecc_dsa.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/ecc_platform_specific.c (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/hmac.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/hmac_prng.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/sha256.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/ext/tinycrypt/src/utils.c (96%)
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/ble_att_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/ble_hs_conn_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/ble_l2cap_coc_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/ble_l2cap_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/ble_l2cap_sig_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_att_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_gatt_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_hs_hci_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_l2cap_coc_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_l2cap_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_l2cap_sig_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/src/ble_sm_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/testing.c
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/mesh/src/testing.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_att_cmd_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_gap_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_gatt_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_adv_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_conn_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_hci_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_id_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_periodic_sync_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_hs_resolv_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/src/ble_monitor_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/host/store/ram/src/ble_store_ram.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_hw.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_adv.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_conn.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_ctrl.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_hci.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_resolv.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_rfmgmt.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_scan.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_sched.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_sync.h
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_hs_startup_priv.h => nimble/controller/include/controller/ble_ll_test.h} (90%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_ll_trace.h
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_hs_mbuf_priv.h => nimble/controller/include/controller/ble_ll_utils.h} (58%)
rename lib/libesp32_div/NimBLE-Arduino/src/{porting/nimble/include/nimble/nimble_port.h => nimble/nimble/controller/include/controller/ble_ll_whitelist.h} (54%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_phy.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/include/controller/ble_phy_trace.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_adv.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_conn.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_conn_hci.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_conn_priv.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_ctrl.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_dtm.c
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_hs_atomic_priv.h => nimble/controller/src/ble_ll_dtm_priv.h} (53%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_hci.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_hci_ev.c
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_uuid_priv.h => nimble/controller/src/ble_ll_priv.h} (54%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_rand.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_resolv.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_rfmgmt.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_scan.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_sched.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_supp_cmd.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_sync.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_trace.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_utils.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/src/ble_ll_whitelist.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/controller/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_hs_pvcy_priv.h => nimble/drivers/nrf51/include/ble/xcvr.h} (55%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf51/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf51/src/ble_hw.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf51/src/ble_phy.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/include/ble/xcvr.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/src/ble_hw.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/src/ble_phy.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/src/ble_phy_trace.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/drivers/nrf52/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_att.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_eddystone.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_gap.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_gatt.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs.h (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_adv.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_hci.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_id.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_log.h (92%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_mbuf.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_pvcy.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_hs_stop.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_ibeacon.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_l2cap.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_monitor.h (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_sm.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_store.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/include}/host/ble_uuid.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/access.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/cfg_cli.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/cfg_srv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/glue.h (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/health_cli.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/health_srv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/main.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/mesh.h (78%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/model_cli.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/model_srv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/porting.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/proxy.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/slist.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/mesh/include}/mesh/testing.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/mesh/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/access.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/access.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/adv.c (94%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/adv.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/atomic.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/beacon.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/beacon.h (89%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/cfg_cli.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/cfg_srv.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/crypto.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/crypto.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/foundation.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/friend.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/friend.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/glue.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/health_cli.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/health_srv.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/light_model.c (87%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/light_model.h (87%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/lpn.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/lpn.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/mesh.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/mesh_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/model_cli.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/model_srv.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/net.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/net.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/nodes.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/nodes.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/prov.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/prov.h (85%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/proxy.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/proxy.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/settings.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/settings.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/shell.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/shell.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/transport.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/mesh/src/transport.h (96%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/mesh/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/README.txt
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/pts-gap.txt
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/pts-gatt.txt
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/pts-l2cap.txt
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/pts-sm.txt
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/tpg/94654-20170317-085122560.tpg
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/pts/tpg/94654-20170317-085441153.pts
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/ans/include}/services/ans/ble_svc_ans.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ans/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/ans/src/ble_svc_ans.c (98%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ans/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/bas/include}/services/bas/ble_svc_bas.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/bas/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/bas/src/ble_svc_bas.c (92%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/bas/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/dis/include/services/dis/ble_svc_dis.h
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/dis/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/dis/src/ble_svc_dis.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/dis/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/gap/include}/services/gap/ble_svc_gap.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/gap/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/gap/src/ble_svc_gap.c (97%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/gap/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/gatt/include}/services/gatt/ble_svc_gatt.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/gatt/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/gatt/src/ble_svc_gatt.c (95%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/gatt/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/ias/include}/services/ias/ble_svc_ias.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ias/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/ias/src/ble_svc_ias.c (96%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ias/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/ipss/include}/services/ipss/ble_svc_ipss.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ipss/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/ipss/src/ble_svc_ipss.c (89%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/ipss/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/lls/include}/services/lls/ble_svc_lls.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/lls/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/lls/src/ble_svc_lls.c (97%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/lls/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/services/tps/include}/services/tps/ble_svc_tps.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/tps/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/services/tps/src/ble_svc_tps.c (91%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/services/tps/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_att.c (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_att_clt.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_att_cmd.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_att_cmd_priv.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_att_priv.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_att_svr.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_eddystone.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_gap.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_gap_priv.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh => nimble/host}/src/ble_gatt_priv.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_gattc.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_gatts.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_gatts_lcl.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_adv.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_adv_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_atomic.c (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_atomic_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_cfg.c (92%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_conn.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_conn_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_flow.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_flow_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_hci.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_hci_cmd.c (79%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_hci_evt.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/services/tps => nimble/host}/src/ble_hs_hci_priv.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_hci_util.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_id.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_id_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_log.c (92%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_mbuf.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_mbuf_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_misc.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_mqueue.c (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_periodic_sync.c (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_periodic_sync_priv.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_priv.h (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_pvcy.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_pvcy_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_resolv.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_resolv_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_shutdown.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_startup.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_hs_startup_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_hs_stop.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_ibeacon.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_coc.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_coc_priv.h (93%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_priv.h (95%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_sig.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_sig_cmd.c (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_l2cap_sig_priv.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_monitor.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_monitor_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm_alg.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm_cmd.c (92%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm_lgcy.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm_priv.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_sm_sc.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_store.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_store_util.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/src/ble_uuid.c (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/mesh/src => nimble/host}/src/ble_uuid_priv.h (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/store/config/include}/store/config/ble_store_config.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/store/config/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/store/config/src/ble_store_config.c (98%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/store/config/src/ble_store_config_conf.c
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/store/config/src/ble_store_config_priv.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/store/config/src/ble_store_nvs.c (98%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/store/config/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/tools/log2smtest.rb
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/nimble/host/util/include}/host/util/util.h (100%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/util/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble}/host/util/src/addr.c (94%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/host/util/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/ble.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/ble_hci_trans.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/hci_common.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/nimble_npl.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/nimble_opt.h (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => nimble/include/nimble}/nimble_opt_auto.h (98%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/transport/pkg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{host/src/ble_hs_flow_priv.h => nimble/transport/ram/include/transport/ram/ble_hci_ram.h} (80%)
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/transport/ram/pkg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/transport/ram/src/ble_hci_ram.c
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/transport/ram/syscfg.yml
create mode 100644 lib/libesp32_div/NimBLE-Arduino/src/nimble/nimble/transport/syscfg.yml
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/hal/hal_timer.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/log/log.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/log_common/ignore.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/log_common/log_common.h (97%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/logcfg/logcfg.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/mem/mem.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/modlog/modlog.h (79%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => porting/nimble/include/nimble}/nimble_port.h (88%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/endian.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os.h (89%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os_cputime.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os_error.h (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os_mbuf.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os_mempool.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/os_trace_api.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/queue.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/os/util.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/stats/stats.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/syscfg/syscfg.h (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/sysflash/sysflash.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble/porting/nimble/include}/sysinit/sysinit.h (100%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/endian.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/hal_timer.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/mem.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/nimble_port.c (90%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/os_cputime.c (96%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/os_cputime_pwr2.c (98%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/os_mbuf.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/os_mempool.c (99%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/nimble/src/os_msys_init.c (90%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => porting/npl/freertos/include/nimble}/nimble_npl_os.h (89%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => porting/npl/freertos/include/nimble}/nimble_port_freertos.h (85%)
rename lib/libesp32_div/NimBLE-Arduino/src/nimble/{ => porting/npl/freertos/include/nimble}/npl_freertos.h (91%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/npl/freertos/src/nimble_port_freertos.c (61%)
rename lib/libesp32_div/NimBLE-Arduino/src/{ => nimble}/porting/npl/freertos/src/npl_os_freertos.c (67%)
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/src/ble_hs_hci_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/src/ble_sm_priv.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/store/ram/ble_store_ram.h
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/tinycrypt/AUTHORS
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/tinycrypt/LICENSE
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/tinycrypt/README
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/tinycrypt/VERSION
delete mode 100644 lib/libesp32_div/NimBLE-Arduino/src/tinycrypt/documentation/tinycrypt.rst
diff --git a/lib/libesp32_div/NimBLE-Arduino/CHANGELOG.md b/lib/libesp32_div/NimBLE-Arduino/CHANGELOG.md
index b80c3c93b..08d274106 100644
--- a/lib/libesp32_div/NimBLE-Arduino/CHANGELOG.md
+++ b/lib/libesp32_div/NimBLE-Arduino/CHANGELOG.md
@@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
+## [1.3.6] - 2022-01-18
+
+### Changed
+- When retrieving attributes from a server fails with a 128bit UUID containing the ble base UUID another attempt will be made with the 16bit version of the UUID.
+
+### Fixed
+- Memory leak when services are changed on server devices.
+- Rare crashing that occurs when BLE commands are sent from ISR context using IPC.
+- Crashing caused by uninitialized disconnect timer in client.
+- Potential crash due to unintialized advertising callback pointer.
+
## [1.3.5] - 2022-01-14
### Added
diff --git a/lib/libesp32_div/NimBLE-Arduino/docs/Command_line_config.md b/lib/libesp32_div/NimBLE-Arduino/docs/Command_line_config.md
index c22565f4f..3fe4acb3e 100644
--- a/lib/libesp32_div/NimBLE-Arduino/docs/Command_line_config.md
+++ b/lib/libesp32_div/NimBLE-Arduino/docs/Command_line_config.md
@@ -6,6 +6,24 @@ Sets the number of simultaneous connections (esp controller max is 9)
- Default value is 3
+`CONFIG_NIMBLE_CPP_ATT_VALUE_TIMESTAMP_ENABLED`
+
+Enable/disable storing the timestamp when an attribute value is updated
+This allows for checking the last update time using getTimeStamp() or getValue(time_t*)
+If disabled, the timestamp returned from these functions will be 0.
+Disabling timestamps will reduce the memory used for each value.
+1 = Enabled, 0 = Disabled; Default = Disabled
+
+
+`CONFIG_NIMBLE_CPP_ATT_VALUE_INIT_LENGTH`
+
+Set the default allocation size (bytes) for each attribute.
+If not specified when the constructor is called. This is also the size used when a remote
+characteristic or descriptor is constructed before a value is read/notifed.
+Increasing this will reduce reallocations but increase memory footprint.
+Default value is 20. Range: 1 : 512 (BLE_ATT_ATTR_MAX_LEN)
+
+
`CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU`
Sets the default MTU size.
@@ -24,6 +42,13 @@ If defined, enables debug log messages from the NimBLE host
- Uses approx. 32kB of flash memory.
+`CONFIG_NIMBLE_CPP_LOG_LEVEL`
+
+Define to set the debug log message level from the NimBLE CPP Wrapper.
+If not defined it will use the same value as the Arduino core debug level.
+Values: 0 = NONE, 1 = ERROR, 2 = WARNING, 3 = INFO, 4+ = DEBUG
+
+
`CONFIG_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT`
If defined, NimBLE host return codes will be printed as text in debug log messages.
diff --git a/lib/libesp32_div/NimBLE-Arduino/docs/Improvements_and_updates.md b/lib/libesp32_div/NimBLE-Arduino/docs/Improvements_and_updates.md
index 245defd2d..c3c11265e 100644
--- a/lib/libesp32_div/NimBLE-Arduino/docs/Improvements_and_updates.md
+++ b/lib/libesp32_div/NimBLE-Arduino/docs/Improvements_and_updates.md
@@ -69,7 +69,9 @@ Now takes 2 optional parameters, the first is the duration to advertise for (in
that is invoked when advertsing ends and takes a pointer to a `NimBLEAdvertising` object (similar to the `NimBLEScan::start` API).
This provides an opportunity to update the advertisment data if desired.
-
+
+Also now returns a bool value to indicate if advertising successfully started or not.
+
# Client
@@ -100,8 +102,18 @@ Has been **deprecated** as now the internally stored characteristic value is upd
`NimBLERemoteCharacteristic::subscribe` and `NimBLERemoteCharacteristic::unsubscribe` have been implemented to replace it.
A callback is no longer requred to get the most recent value unless timing is important. Instead, the application can call `NimBLERemoteCharacteristic::getValue` to
get the last updated value any time.
+
-In addition `NimBLERemoteCharacteristic::readValue` and `NimBLERemoteCharacteristic::getValue` take an optional timestamp parameter which will update it's value with
+The `notifiy_callback` function is now defined as a `std::function` to take advantage of using `std::bind` to specifiy a class member function for the callback.
+
+Example:
+```
+using namespace std::placeholders;
+notify_callback callback = std::bind(&::, this, _1, _2, _3, _4);
+->subscribe(true, callback);
+```
+
+`NimBLERemoteCharacteristic::readValue` and `NimBLERemoteCharacteristic::getValue` take an optional timestamp parameter which will update it's value with
the time the last value was recieved.
> NimBLEClient::getService
diff --git a/lib/libesp32_div/NimBLE-Arduino/examples/NimBLE_Server/NimBLE_Server.ino b/lib/libesp32_div/NimBLE-Arduino/examples/NimBLE_Server/NimBLE_Server.ino
index 409ec64d6..7b8c42949 100644
--- a/lib/libesp32_div/NimBLE-Arduino/examples/NimBLE_Server/NimBLE_Server.ino
+++ b/lib/libesp32_div/NimBLE-Arduino/examples/NimBLE_Server/NimBLE_Server.ino
@@ -127,7 +127,7 @@ class CharacteristicCallbacks: public NimBLECharacteristicCallbacks {
/** Handler class for descriptor actions */
class DescriptorCallbacks : public NimBLEDescriptorCallbacks {
void onWrite(NimBLEDescriptor* pDescriptor) {
- std::string dscVal((char*)pDescriptor->getValue(), pDescriptor->getLength());
+ std::string dscVal = pDescriptor->getValue();
Serial.print("Descriptor witten value:");
Serial.println(dscVal.c_str());
};
diff --git a/lib/libesp32_div/NimBLE-Arduino/library.json b/lib/libesp32_div/NimBLE-Arduino/library.json
index e501aed59..69468f68d 100644
--- a/lib/libesp32_div/NimBLE-Arduino/library.json
+++ b/lib/libesp32_div/NimBLE-Arduino/library.json
@@ -2,7 +2,7 @@
"name": "NimBLE-Arduino",
"keywords": "esp32, bluetooth",
"description": "Bluetooth low energy (BLE) library for arduino-esp32 based on NimBLE",
- "version": "1.3.5",
+ "version": "1.3.6",
"frameworks": "arduino",
"platforms": "espressif32"
}
diff --git a/lib/libesp32_div/NimBLE-Arduino/library.properties b/lib/libesp32_div/NimBLE-Arduino/library.properties
index cbea51f6a..38f044cde 100644
--- a/lib/libesp32_div/NimBLE-Arduino/library.properties
+++ b/lib/libesp32_div/NimBLE-Arduino/library.properties
@@ -1,5 +1,5 @@
name=NimBLE-Arduino
-version=1.3.5
+version=1.3.6
author=h2zero
maintainer=h2zero
sentence=Bluetooth low energy (BLE) library for arduino-esp32 based on NimBLE.
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/HIDTypes.h b/lib/libesp32_div/NimBLE-Arduino/src/HIDTypes.h
index 726b84be3..8ee31dae6 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/HIDTypes.h
+++ b/lib/libesp32_div/NimBLE-Arduino/src/HIDTypes.h
@@ -45,13 +45,8 @@
/* of data as per HID Class standard */
/* Main items */
-#ifdef ARDUINO_ARCH_ESP32
-#define HIDINPUT(size) (0x80 | size)
-#define HIDOUTPUT(size) (0x90 | size)
-#else
-#define INPUT(size) (0x80 | size)
-#define OUTPUT(size) (0x90 | size)
-#endif
+#define HIDINPUT(size) (0x80 | size)
+#define HIDOUTPUT(size) (0x90 | size)
#define FEATURE(size) (0xb0 | size)
#define COLLECTION(size) (0xa0 | size)
#define END_COLLECTION(size) (0xc0 | size)
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.cpp b/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.cpp
index 80318b5b8..282eff55f 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.cpp
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.cpp
@@ -16,11 +16,8 @@
* See also:
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
*/
-#include "sdkconfig.h"
-#if defined(CONFIG_BT_ENABLED)
-
#include "nimconfig.h"
-#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
+#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
#include "NimBLE2904.h"
@@ -86,5 +83,4 @@ void NimBLE2904::setUnit(uint16_t unit) {
setValue((uint8_t*) &m_data, sizeof(m_data));
} // setUnit
-#endif // #if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
-#endif
+#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_PERIPHERAL */
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.h b/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.h
index d8800dd2f..29dde51e8 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.h
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLE2904.h
@@ -14,11 +14,8 @@
#ifndef MAIN_NIMBLE2904_H_
#define MAIN_NIMBLE2904_H_
-#include "sdkconfig.h"
-#if defined(CONFIG_BT_ENABLED)
-
#include "nimconfig.h"
-#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
+#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
#include "NimBLEDescriptor.h"
@@ -82,6 +79,5 @@ private:
BLE2904_Data m_data;
}; // BLE2904
-#endif // #if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
-#endif /* CONFIG_BT_ENABLED */
+#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_PERIPHERAL */
#endif /* MAIN_NIMBLE2904_H_ */
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.cpp b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.cpp
index e1d3e548b..b8df5ac83 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.cpp
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.cpp
@@ -11,7 +11,7 @@
* Created on: Jul 2, 2017
* Author: kolban
*/
-#include "sdkconfig.h"
+#include "nimconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.h b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.h
index 50f9231fe..a6e10a09c 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.h
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAddress.h
@@ -14,10 +14,15 @@
#ifndef COMPONENTS_NIMBLEADDRESS_H_
#define COMPONENTS_NIMBLEADDRESS_H_
-#include "sdkconfig.h"
+#include "nimconfig.h"
#if defined(CONFIG_BT_ENABLED)
+#if defined(CONFIG_NIMBLE_CPP_IDF)
#include "nimble/ble.h"
+#else
+#include "nimble/nimble/include/nimble/ble.h"
+#endif
+
/**** FIX COMPILATION ****/
#undef min
#undef max
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.cpp b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.cpp
index ecfd49814..01dd75d41 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.cpp
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.cpp
@@ -11,11 +11,9 @@
* Created on: Jul 3, 2017
* Author: kolban
*/
-#include "sdkconfig.h"
-#if defined(CONFIG_BT_ENABLED)
#include "nimconfig.h"
-#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
+#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
#include "NimBLEDevice.h"
#include "NimBLEAdvertisedDevice.h"
@@ -783,7 +781,5 @@ size_t NimBLEAdvertisedDevice::getPayloadLength() {
return m_payload.size();
} // getPayloadLength
-
-#endif // #if defined( CONFIG_BT_NIMBLE_ROLE_CENTRAL)
-#endif /* CONFIG_BT_ENABLED */
+#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_CENTRAL */
diff --git a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h
index 7d378ed0f..39410e665 100644
--- a/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h
+++ b/lib/libesp32_div/NimBLE-Arduino/src/NimBLEAdvertisedDevice.h
@@ -14,20 +14,22 @@
#ifndef COMPONENTS_NIMBLEADVERTISEDDEVICE_H_
#define COMPONENTS_NIMBLEADVERTISEDDEVICE_H_
-#include "sdkconfig.h"
-#if defined(CONFIG_BT_ENABLED)
-
#include "nimconfig.h"
-#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
+#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
#include "NimBLEAddress.h"
#include "NimBLEScan.h"
#include "NimBLEUUID.h"
+#if defined(CONFIG_NIMBLE_CPP_IDF)
#include "host/ble_hs_adv.h"
+#else
+#include "nimble/nimble/host/include/host/ble_hs_adv.h"
+#endif
#include