Wu Jian Gang
ad1790fe3e
Merge branch 'feature/btdm_attr_table' into 'master'
...
component bt:Added the create attribute table method to the new API
GATT Server service table APIs.
Have already modify the style and other things as @jeroen suggestion in other MR(the MR have been closed)
See merge request !399
2017-01-12 17:31:39 +08:00
Tian Hao
fec2f534d5
component/bt : gatt server table fix uuid discovery bug
2017-01-12 16:25:09 +08:00
Tian Hao
142756615b
component/bt : mv demo name
...
1. mv demo name
2. fix a docs
2017-01-12 14:44:26 +08:00
Jiang Jiang Jian
d3a0580bef
Merge branch 'bugfix/btdm_dualcore_tmp_solution' into 'master'
...
component/bt : modify bluedroid task to core0
use tmp solution to resolve the dual core bug.
Run bluedroid all task on core0.
See merge request !408
2017-01-12 11:50:18 +08:00
Island
9f151d745e
component/bt : Optimize Gatt attr table and fix some bugs
...
1. Optimize GATT attribute table structure
2. fix read/write bugs
3. add docs
2017-01-12 11:49:15 +08:00
Ivan Grokhotkov
5fbea86a9e
Merge branch 'feature/config_wifi_bt' into 'master'
...
Clean up WiFi & Bluetooth config options
* Splits "WiFi" configuration out from ESP32 configuration submenu to its own menu.
* Renames "BT" to "Bluetooth", enabling Bluetooth is now in this option not the ESP32 submenu.
* Also disables compiling/linking of BT stack if Bluetooth is disabled, saves some build time.
See merge request !397
2017-01-11 18:38:30 +08:00
Tian Hao
1eed54c7cd
component/bt : modify bluedroid task to core0
2017-01-11 17:19:25 +08:00
Yulong
d512d6100c
component bt:Added the create attribute table method to the new API
2017-01-11 16:57:19 +08:00
Jiang Jiang Jian
0c01ef68f1
Merge branch 'bugfix/id9562_unregistered_callback' into 'master'
...
component/bt: check for registration status of callback function before using it
Add checking of NULL function pointers when calling bluetooth callbacks, especially before the callback functions are registered
See merge request !406
2017-01-11 15:57:03 +08:00
wangmengyang
babeed4170
component/bt: change MACRO to inline function when invoking callbacks
2017-01-11 14:08:16 +08:00
wangmengyang
c592714679
component/bt: fix typos in "if" condition espressions
2017-01-11 13:36:48 +08:00
wangmengyang
0c31bdf643
component/bt: check for registration status of callback function before using it
2017-01-11 11:31:35 +08:00
wangmengyang
59540eeae1
component/bt: bug fix of lack of checking bluetooth stack status inside API functions
2017-01-11 11:04:41 +08:00
Angus Gratton
26d1a23308
config: Move WiFi & BT toggles to Components menu, same as Ethernet
2017-01-10 16:39:43 +11:00
Angus Gratton
2e78b397bc
config: Simplify WiFi & Bluetooth config options
...
Removes redundant menu options, splits WiFi configuration out from
generic ESP32 configuration.
2017-01-10 16:04:04 +11:00
Tian Hao
9c630b759f
component/bt : add bt device api
...
1. add get bd_addr function
2017-01-06 21:19:58 +08:00
Tian Hao
e4b9563dac
component/bt : blufi add version
2017-01-06 17:40:46 +08:00
Tian Hao
9017c408ac
component/bt : use new lib, optimize BT power
2017-01-05 20:41:15 +08:00
Tian Hao
24af07fd13
component/bt : new blufi
...
1. new blufi protocol
2. new blufi demo
3. support security
4. support sta/ap/sta_ap
5. support wpa-enterprise
2017-01-05 20:22:35 +08:00
wangmengyang
2e7748d625
component/bt: modify bluetooth API
...
1. VHCI api and doxygen
2. Controller api and doxygen
3. bluedroid init/enable api and doxygen
4. cleanup demo codes
2017-01-05 20:02:06 +08:00
Tian Hao
d6fcec73b2
component/bt : add macro for adv_data_flag
...
1. add macro for adv data flag
2. add docs for doxygen
2017-01-05 17:53:33 +08:00
Tian Hao
daf58e3852
component/bt : fix advertising bug
...
1. adv data flag
2. default adv data not BR/EDR in demo
2017-01-05 17:53:33 +08:00
Tian Hao
ee318d42ae
Merge branch 'master' into feature/btdm_gatt_api
2017-01-05 15:25:03 +08:00
Angus Gratton
06e03ff52e
Replace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS
...
Closes github #51 https://github.com/espressif/esp-idf/issues/51
2016-12-28 10:23:13 +11:00
Tian Hao
65fe6ab320
component/bt : modify demo for new api
...
1. modify GATT Client demo
2. modify GATT Server demo
3. fix a register notify bug
2016-12-19 17:15:41 +08:00
Tian Hao
c01dedcb06
component/bt : change api for V2.0
...
1. change all gatt cb function to 3 args and function type. add gattc_if/gatts_if as second argument
2. delete gatt_if of "gatt cb param"
3. separate conn_id and gatt_if from conn_id
4. change the demo code as the gatt changed
2016-12-19 17:15:41 +08:00
Tian Hao
5a2033c4e3
Merge branch 'master' into bugfix/btdm_bluedroid
2016-12-15 14:40:29 +08:00
Tian Hao
d242251295
component/bt : fix advertising bug
...
1. low duty can not be set bug
2. adv type can not be effective bug
2016-12-15 14:33:09 +08:00
Tian Hao
f3450abf3d
component/bt : add some macro , so redo the doxygen
2016-12-15 14:02:48 +08:00
Tian Hao
d045187c0f
component/bt : change the resolving list cleanup position
...
1. enable will malloc, but disable don't free resolving list, so fix it
2. In disable procedure, it will alloc alarm to hash_map, and all the alarm hash_map will be free in deinit. So this need not be fixed currently.
2016-12-15 13:35:30 +08:00
Tian Hao
aba262b18b
component/bt : fix bluetooth disable memory leak
2016-12-15 01:36:27 +08:00
Tian Hao
69ee1de9fa
component/bt : fix enable bug
...
1. enable will cause exception with list->head memory modify
2. gatt complete, timeout with HCI cmd timeout will cause exception
2016-12-14 22:10:21 +08:00
Tian Hao
5e87cdec7e
component/bt : increase the task stack size
...
1. increase HCI task stack size
2. increase BTC task stack size for default
2016-12-14 22:10:21 +08:00
Tian Hao
fd11beebcd
component/bt : fix the init/deinit memory leak
...
1. modify the memory debug
2. fix init/deinit memory leak
2016-12-14 22:10:21 +08:00
Tian Hao
7ae7a56457
component/bt : fix the bug of deinit/disable
...
1. fix the exception of deinit/disable
2. debug mem leak of deinit, fix some memleak, but still something wrong.
3. debug men leak of disable.
4. add bluedroid memory debug
2016-12-14 22:10:21 +08:00
Angus Gratton
bbe1bceda8
build system: Project ELF should depend on linker scripts, binary libraries
...
TW#7816
2016-12-12 15:58:53 +11:00
Tian Hao
1be09039e3
component/bt : cleanup the un-necessary include in api.h
...
1. cleanup the un-necessary include in api.h for "extern c"
2. add UUID define
2016-12-09 14:38:21 +08:00
Tian Hao
4c6ccf1c23
component/bt : add cpp extern c
...
1. add cpp extern c
2. retab tab to 4 space
2016-12-09 14:38:21 +08:00
Tian Hao
e0e6966be0
component/bt : fix the authentication req type
2016-12-09 14:38:21 +08:00
Tian Hao
8185b0f806
component/bt : fix bug of bdaddr point to resolve gattc recv notify
2016-12-09 14:38:21 +08:00
Tian Hao
8ca6e37c12
component/bt : delete the un-used lines
2016-12-08 15:00:19 +08:00
Tian Hao
5933ebc6b6
component/bt : cleanup all the "-W-no-xx" and all the warnings
...
1. cleanup the warnings.
2. fix the some function called in gap
3. fix some code in btc_main
2016-12-07 13:49:53 -08:00
Tian Hao
d925b96daf
component/bt : cleanup the function warning in doxygen
2016-12-01 20:55:08 +08:00
Tian Hao
954ffa102f
component/bt : add ble event type
2016-12-01 20:16:09 +08:00
Tian Hao
bdf4006da7
component/bt : cleanup the return style
2016-12-01 19:58:52 +08:00
Tian Hao
c6ec70b67b
component/bt : cleanup the function comment as doxygen type
2016-12-01 18:58:54 +08:00
Tian Hao
281a9c2761
component/bt : fix a code bug
2016-12-01 12:14:57 +08:00
Tian Hao
1abf2c4ed7
component/bt : update lib
2016-12-01 12:05:42 +08:00
Tian Hao
758a9e5f06
component/bt : fix compile error
2016-11-29 19:45:10 +08:00
Tian Hao
4c83238a85
component/bt : fix compile error
2016-11-29 19:25:27 +08:00