Commit Graph
721 Commits
Author SHA1 Message Date
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
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
hathach 8b04c26463 rename BleSecurityMode to SecureMode_t 2020-02-04 21:13:11 +07:00
hathach fc922e661d add Bluefruit.setPIN() for static passkey pairing 2020-02-04 21:06:06 +07:00
hathach 1f3c237fc5 add comment follow up to #413 2020-01-31 11:15:15 +07:00
ogatatsu 6f1acc4b3d Fixed a bug that disconnect function of client characteristics was not called. 2020-01-12 20:16:35 +09:00
ogatatsu 37e3b53bcf Modified to work correctly when multiple characteristics of the same uuid are passed. 2020-01-12 20:10:40 +09:00
ogatatsu e83bf4047a Changed to use the first cccd descriptor found. 2020-01-12 20:05:22 +09:00
hathach a1e45995cf update advertising with USB PID as board ID 2019-11-26 11:33:16 +07:00
hathach 986a0f8b90 complete file moving 2019-11-18 20:57:56 +07:00
hathach 8b60180b45 move BLEAdafruit service to its own library due to neopixel/dotstar dependency 2019-11-18 20:43:17 +07:00
hathach 583ad02a7d increase sd attribute table size from 0x800 to 0xC00, increase linker memory for SD 840 from 3400 to 6000 2019-11-18 20:12:34 +07:00
hathach 9860a6e757 renaming neopixel to Rgb Pixel 2019-11-18 17:16:01 +07:00
hathach 8189353d32 added tone service 2019-11-14 22:52:40 +07:00
hathach 6ac348ff01 implement period = 0, notify on changes 2019-11-14 17:16:45 +07:00
hathach 65eb11829b update BLEAdafruitSensor service 2019-11-14 14:55:20 +07:00
hathach d898f17f44 BLECharacteristic allow user set buffer 2019-11-14 13:14:03 +07:00
hathach 0ab39ca9df change BLEUuid begin() return type to bool 2019-11-14 12:35:06 +07:00
hathach 8db3f2e372 use BLEAdafruitSensor as base class for other services 2019-11-14 00:36:12 +07:00
hathach 603447a0d6 adding abstract class BLEAdafruitSensor 2019-11-13 17:19:56 +07:00
hathach 9e75e65c5a increase timer callback task for more usage 2019-11-13 01:00:35 +07:00
hathach 335cde068e add button service 2019-11-12 23:06:52 +07:00
hathach 5afcadb368 update adafruit services 2019-11-12 22:49:59 +07:00