Commit Graph
792 Commits
Author SHA1 Message Date
hathach 1a6a88a556 fix ci for feather52832 2020-03-19 16:18:41 +07:00
hathach 0391ecac34 remove Bluefruit::connPaired() and BLEConnection::paired() 2020-03-19 15:52:23 +07:00
hathach e0cda21a1a remove AdafruitBluefruit::requestPairing
default CFG_DEFAULT_NAME to USB_PRODUCT
2020-03-18 23:04:00 +07:00
hathach f35ca052f5 added secured callback 2020-03-18 14:22:36 +07:00
hathach f0440b55ea Pairing added secured callback, requestPairing() is non-blocking now. 2020-03-18 11:25:52 +07:00
hathach 7cc1307517 central auto removes failed bond keys 2020-03-18 11:00:06 +07:00
hathach d0e5946974 rename save/load BondKey 2020-03-18 10:55:05 +07:00
hathach 1210b3e7c0 BLEConnection add _bonded, rename _paired to _secured 2020-03-18 10:18:18 +07:00
hathach 35262982c4 central auto use stored keys if bonded previously 2020-03-18 00:34:29 +07:00
hathach ddded48642 fix central reconnection with LESC 2020-03-17 23:44:09 +07:00
hathach a5fea5644b clean up 2020-03-17 23:42:26 +07:00
hathach 44a98b6e9a enhance pairing to work with numberic comparison 2020-03-17 17:01:49 +07:00
hathach 2a53a5f810 add Pairing setIOCaps() and setMITM() 2020-03-17 13:37:02 +07:00
hathach 7b432602aa clean up 2020-03-16 22:44:24 +07:00
hathach b487db9603 rename display callback to passkey callback 2020-03-16 13:22:13 +07:00
hathach 0ee2124e06 clean up BLEConnection 2020-03-14 16:45:50 +07:00
hathach 1a9415005b clean up bonding code 2020-03-14 16:43:16 +07:00
hathach b555131ca2 improve connection requestPairing()
move loadCccd() to
2020-03-14 16:29:51 +07:00
hathach e6bcfcb4c0 update bond remove keys 2020-03-14 16:07:40 +07:00
hathach c6167bc4e5 clean up 2020-03-14 14:37:29 +07:00
hathach 5b16aee26d clean up 2020-03-14 14:35:35 +07:00
hathach 278f82aefe enhance save cccd, only write to flash if contents not matched 2020-03-14 14:27:56 +07:00
hathach 4653f9cdc3 save key dfr don't need malloc 2020-03-14 14:07:31 +07:00
hathach d32aa2c04c move bond_keys and peer_pubkey into BLEPairing
change to use static variable instead of malloc pointer for more
reliability
2020-03-14 14:01:35 +07:00
hathach b5ca5d0387 reworking bonding, save/load using ID Address instead of ediv 2020-03-14 13:40:40 +07:00
hathach cd45f0adc2 move clearBonds() to PrPh 2020-03-14 11:47:27 +07:00
hathach 8f554493db fix swap endian, tested resolveAddress() 2020-03-13 16:17:24 +07:00
hathach fd0b115f42 Merge branch 'master' into develop 2020-03-12 21:38:52 +07:00
Henry Gabryjelski 2709813ea6 More printf() --> PRINTF() conversion 2020-03-11 16:39:59 -07:00
Henry Gabryjelski 7fab012a3a Undo accidental change 2020-03-11 15:42:41 -07:00
Henry Gabryjelski decde55d74 Use Print class reference
This is in preparation for enabling output to
be provided via other, potentially more performant,
modes.
2020-03-11 15:25:39 -07:00
hathach df6a459a10 remove requestPHY() from 1MB to 2MB, old Mac may not support 2MB. Leave it to central to switch
also add hci str debug
2020-03-02 22:11:30 +07:00
hathach 0a73db570d Merge remote-tracking branch 'origin/master' into quaternion-service 2020-02-24 23:37:41 +07:00
Matthias Spiller 3bc73d5fb0 Fix sporadic hangup when stopping notifies 2020-02-21 08:17:13 +00:00
hathach 79efcb88ef add characteristic isFixedLen() 2020-02-21 11:48:16 +07:00
hathach 9329328bef increase attr table size for 840 to from 0xC00 to 0x1000 2020-02-19 14:52:35 +07:00
hathach aadf097cf7 clean up 2020-02-17 16:09:59 +07:00
hathach 8330bd9c11 use USB_PRODUCT string for default bledis model 2020-02-17 14:34:02 +07:00
hathach 95fd6aaf36 bond debug 2020-02-17 10:11:43 +07:00
hathach afdaf93e45 move peer pubkey to member of Connection (better for concurrent support) 2020-02-14 22:05:46 +07:00
hathach 7991602319 add resolveAddress with IRK 2020-02-14 21:28:56 +07:00
hathach a739ea12c2 add more log to bond/pairing 2020-02-14 18:42:03 +07:00
hathach 13b6695055 more with BLEPairing 2020-02-14 18:19:02 +07:00
hathach 53c9580f71 Introducing BLEPairing class
move all pairing/bonding related to BLEPairing
2020-02-14 12:36:46 +07:00
hathach 5b1eeab956 LESC passkey pairing work well 2020-02-13 18:54:38 +07:00
hathach 844e5cae23 save peer LTK (bond) if it is distributed 2020-02-13 17:43:11 +07:00
hathach 4402af2139 getting passed the LESC DHKEY 2020-02-13 16:09:42 +07:00
hathach 157664702c clean up 2020-02-13 11:29:39 +07:00
hathach ee29722b69 adding pairing display example 2020-02-05 14:57:42 +07:00
hathach 2c02b37d91 add PIN Pairing example 2020-02-04 22:13:15 +07:00