Commit Graph
73 Commits
Author SHA1 Message Date
hathach e200c8249d Central.disconnect() is repalced by Bluefruit.disconnect() 2019-01-24 14:10:15 +07:00
hathach e42b11d348 clean up 2019-01-24 00:07:11 +07:00
hathach 89be3a197f rename Gap.getConnection() to simply Connection() 2019-01-22 22:54:33 +07:00
hathach d15b196fe6 increase max connections to 20 (central + prph) 2019-01-21 23:13:59 +07:00
hathach 72e627149c Bluefruit.connected(void) return number of connected as prph, Central.connected(void) return number of connection as central 2019-01-21 18:26:09 +07:00
hathach 14980fbe12 add bleconnection connected() 2019-01-21 18:16:05 +07:00
hathach 49ad36cdd6 add connected(conn_hdl) for prph 2019-01-21 17:58:22 +07:00
hathach e312da361e enhance BLEGap, adding BLEGapConnection to support up to max 20 connections 2019-01-17 12:53:22 +07:00
hathach 5dd174f933 fixing homekit filestroage build. Still have issue with c++ in fileio 2019-01-07 17:00:17 +07:00
hathach df8a17ca57 update conn param 2019-01-07 15:54:33 +07:00
hathach 9a0da085b7 Central handle BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST 2019-01-07 15:16:52 +07:00
hathach 294e0564b8 adding central BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST 2019-01-05 00:10:44 +07:00
hathach 4640481d02 update Copyright year to 2018 2018-07-27 16:20:36 +07:00
hathach 620470d5dc fix #142 add destructor for SoftwareTimer 2018-04-08 13:43:26 +07:00
hathach bba9ae1d12 Merge branch '0.8.x' into develop 2018-04-03 17:15:33 +07:00
hathach a05d467686 enhance bonding management
- seperate bond folder for prph and central
- use mac address if couldn't get peer name when saving bond data
2018-02-26 15:11:13 +07:00
hathach d830129836 removing S132 v2.0.1 support 2018-01-08 11:57:21 +07:00
hathach bb7392ae36 separate prph and central connection bandwidth setting
- add configPrphConn() and configCentralConn() for setting bandwidth for
prph and central connection. These replace  configMaxMtu(),
configGapEventLen(), configHvnTxQueue(), configWriteCmdQueue()
- fix concurrent connection config
- central_uart_multi works with S132 v5
2017-12-21 14:40:44 +07:00
hathach 857455d9e4 fix issue with central_uart sketch 2017-12-21 00:28:50 +07:00
hathach dc30b91a99 add #if for switching softdevice 2017-10-05 15:33:27 +07:00
hathach 3c7487070e migrate to S132 v500
- sd_ble_gap_connect
- sd_ble_gap_adv_start
2017-10-05 15:13:20 +07:00
hathach 0101bcc8fc complete refactor AdaCallback to generic arguments 2017-09-15 16:24:45 +07:00
hathach 725cea11ff refactor AdaCallback
- replace BLEGap connect_callback_t with adacb_1arg_t
- replace BLEGap disconnect_callback_t with adacb_2arg_t
2017-09-15 02:44:34 +07:00
hathach a8496fcaf1 refactor AdaCallback
- use BLEGap connect_callback_t as  adacb_1arg_t
2017-09-15 02:34:23 +07:00
hathach 887d6a6541 improve saving bonding information
add devname into bonding data
2017-07-24 15:21:07 +07:00
hathach d7fe49b4c3 move callback from BLEGap back to Bluefruit & BLECentral 2017-07-15 00:38:25 +07:00
hathach 78f3be6dfa add BLECentral disconnect() 2017-07-13 18:32:31 +07:00
hathach 48e1da695c clean up 2017-07-13 17:59:33 +07:00
hathach 24a680f180 code refactor 2017-07-13 17:57:32 +07:00
hathach c84236b2f9 move scan report parser to Scanner 2017-07-13 16:48:45 +07:00
hathach 118fd0c128 more clean up 2017-07-12 22:03:39 +07:00
hathach a3aef999cc improving scanner 2017-07-12 21:31:58 +07:00
hathach f770816f01 Add BLEScanner 2017-07-12 21:19:23 +07:00
hathach 0302d88a7a enhance advertising
- Separate BLEAdvertisingData & BLEAdvertising
- add setType(), setTimeout(), setInterval(), setIntervalMS()
- add setStopCallback() support
- Add option to only advertising for a specific time (in multiple of
timeout) using start(stop_sec)
- default timeout = 30 second, fast = 20 ms, slow = 152.5 ms
2017-07-12 13:40:15 +07:00
hathach 9c7870580c minor clean up 2017-07-11 18:12:57 +07:00
hathach 90db83ef32 Add conn handle to Bluefruit's connect and disconnect prototype
move connect and disconnect into BLEGap
2017-07-11 13:56:50 +07:00
hathach 4ff746a7f7 move AdaCallback files 2017-07-11 12:36:31 +07:00
hathach 9a74a6f300 more central support
- rename BLE_GAP_MAX_CONN to BLE_MAX_CONN
- change rx callback of BLEClientUart
- better support multiple connection
2017-07-10 23:39:18 +07:00
hathach 74b032b880 update GAP to support multiple connections 2017-07-10 16:45:17 +07:00
hathach 4d5a0e3587 change return type from err_t to bool 2017-04-09 13:00:48 +07:00
hathach a770b995c3 added AdaCallback implemetation 2017-04-03 22:58:35 +07:00
hathach c7f8a8d67f add con_handl to central disconnect callback. Starting to add ada_callback 2017-04-03 12:44:53 +07:00
hathach 13571bfb7a add connection handle for central callback 2017-03-31 22:58:04 +07:00
hathach 006f74aade clean up 2017-03-31 22:51:20 +07:00
hathach b7f33a2e64 add connection handel to BLECentralService
- add  multi-connection support to
BLECentralService/BLECentralCharacteristic
2017-03-30 23:07:41 +07:00
hathach 852e100007 make gatt support both client & server 2017-03-30 19:55:57 +07:00
hathach d5a8e8a738 wrap up discovery 2017-03-30 00:09:20 +07:00
hathach 6d79f0106e move discovery to its own class BLEDiscovery 2017-03-29 23:40:18 +07:00
hathach 3966c7be89 complete central uart read/write 2017-03-29 16:13:53 +07:00
hathach dade06c68a add Central's service list
change central service begin()'s return type to bool
2017-03-29 16:03:05 +07:00