Commit Graph
89 Commits
Author SHA1 Message Date
hathach 75d8db65e5 clean up 2017-03-07 02:01:52 +07:00
hathach 69d541b9eb finish #19 2017-03-07 00:45:38 +07:00
hathach 8918e07b07 add clearBonds() 2017-03-06 23:39:26 +07:00
hathach 03640672f8 wrap up bonding 2017-03-06 21:41:34 +07:00
hathach ed7ee448ee close #18 2017-03-05 14:29:02 +07:00
hathach 4101f96a2f correct beacon, wrap up advertising 2017-03-05 00:13:04 +07:00
hathach 9f3e2955cb add BLEAdvertising 2017-03-04 14:27:24 +07:00
hathach 20ee10c979 clean up 2017-03-03 16:25:37 +07:00
hathach 04f51aea48 separate SOC & BLE event handler into separate task 2017-03-03 15:57:46 +07:00
hathach 4c9316d0b6 correct rtos priority lower number = lower prio 2017-03-03 15:03:50 +07:00
hathach e52c68bc51 clean up 2017-03-03 00:58:32 +07:00
hathach 12ca4c0a28 add throughput close #17
- add notifyEnabled() for BLEUART
- rename MIDI configured() to  notifyEnabled()
- add macro ARUDINO_BSP_VERSION for currnet libraries version, to use
with FirmwareRev in BLEDIS
2017-03-02 17:33:08 +07:00
hathach 36c5c3cfcc add Helper class for NFFS file system 2017-02-28 22:04:03 +07:00
hathach bf90ae6ae4 clean up code 2017-02-28 19:14:38 +07:00
hathach 7b6aee2d24 clean up 2017-02-28 19:06:54 +07:00
hathach 448835f8e4 implement midi write callback (not tested yet0 2017-02-28 18:58:40 +07:00
hathach ee988a97c3 add midi write callback 2017-02-28 17:16:55 +07:00
hathach f31b8ec41d change characteristic write callback signature 2017-02-28 17:12:12 +07:00
hathach 1214c95bb8 get MIDI running 2017-02-28 15:29:26 +07:00
hathach ff97880c62 Negotiate connection interval with central using preferred value
- add connInterval() to return actual connection interval in use
2017-02-28 15:28:47 +07:00
hathach 839f89af93 auto change connection interval to 11.25 - 15ms when starting BLEHidAdafruit 2017-02-28 15:20:29 +07:00
hathach bf3937fa8d change Char write(), notify() uint8_t* to void*
- treat BLE_ERROR_GATTS_SYS_ATTR_MISSING in notifyEnabled() as false
instead of error
2017-02-28 15:18:40 +07:00
hathach 50d703503e change signature of cccd write callback 2017-02-27 17:21:04 +07:00
hathach 2bf4a57bee comment out PIN authenticate 2017-02-27 15:40:24 +07:00
hathach 68bb79fa11 more about connected() 2017-02-26 09:37:44 +07:00
hathach d4425a15c0 fix #16 correct connected() 2017-02-26 09:23:18 +07:00
thach ha 9c1fb31bc1 notify return
- NRF_ERROR_INVALID_PARAM if characteristic properties is not notify
- NRF_ERROR_INVALID_STATE if it is not connected and/or cccd is not enabled for notification
- ERROR_NONE if could sending out notification message
2017-02-24 23:06:18 +07:00
hathach 52d8654525 fix notify crash if not connected
start to add PIN support
2017-02-24 22:36:58 +07:00
hathach 4bffc65b9e add check for characteristic max_len 2017-02-24 12:10:12 +07:00
hathach 046132edf6 Allow BLESerivce to have instance
- remove Bluefruit::addService
2017-02-24 02:12:54 +07:00
hathach dd57126e93 move saveCCCD() to disconnect event 2017-02-23 23:59:23 +07:00
hathach a08b5a79cc rename central to Central 2017-02-23 21:21:45 +07:00
hathach b194a62588 add support for bonded sharing to DFU, could force bonded only for security reason for DFU upgrade 2017-02-23 21:14:42 +07:00
hathach c75998b5aa clean up 2017-02-23 19:54:20 +07:00
hathach 4cd971fa61 move sys_attr (CCCD) into bond_data 2017-02-23 19:52:03 +07:00
hathach 95fb6b2747 update pairing/bonding. Able to pair/bond with windows 10 2017-02-23 14:56:10 +07:00
hathach 7fbe44cd31 update debug facilities 2017-02-22 01:28:49 +07:00
hathach 862d211d2c clean up add connect/disconnect callback 2017-02-21 21:27:23 +07:00
hathach 0317b59c49 clean up 2017-02-21 17:24:33 +07:00
hathach 136f46331a add CCCD Write callback for BLECharacteristic 2017-02-21 17:24:23 +07:00
hathach a5a409d51c clean up 2017-02-21 15:20:38 +07:00
hathach 40d1768020 adding BLE MIDI support 2017-02-21 14:27:09 +07:00
hathach a3bb011e0e Implement Central Connect, callback for connect/disconnect 2017-02-21 00:00:42 +07:00
hathach 1e2b632998 add Central connect(), seperate Central event handler 2017-02-20 16:22:51 +07:00
hathach 2583f234e6 Central add checkUuidInScan, extractScanData
update central scan demo to check Ble uart service
2017-02-20 15:40:57 +07:00
hathach 6950c98319 group central API into separate class for clarification 2017-02-20 12:35:23 +07:00
hathach ecdc351087 update central to support up to 4 conn with 1 shared secure connection
- adjust SRAM for bluefruit & loop task
- adjust BLE_GATTS_ATTR_TABLE_SIZE from 0x1000 down to 0x0B00
2017-02-18 01:41:07 +07:00
hathach 2faf78ca9b add basic central support
- scanning with callbacks
- add setConnLedInterval() to change period of auto led
2017-02-16 16:40:51 +07:00
hathach b6b2539c30 rename ADV Scan to ScanResp to avoid central scan activity 2017-02-16 14:01:27 +07:00
hathach ea69011f9e add bleuart rx callback for user 2017-02-13 22:51:07 +07:00