Commit Graph
58 Commits
Author SHA1 Message Date
hathach 2938ca0a6c Merge branch 'master' into develop 2018-04-05 13:39:25 +07:00
hathach 7ddfde20e6 Merge branch 'master' of github.com:adafruit/Adafruit_nRF52_Arduino 2018-04-05 12:20:36 +07:00
hathach bba9ae1d12 Merge branch '0.8.x' into develop 2018-04-03 17:15:33 +07:00
Greg Gianforcaro aad3697f42 Fix setWriteAuthorizeCallback typo 2018-02-28 17:19:52 -05:00
hathach dcbecb8b5f complete move all bond function to bonding.cpp 2018-02-22 14:51:10 +07:00
hathach c2117d991b BLECharacteristic add offset to read() 2018-01-31 19:02:16 +07:00
hathach 9e0a6ff775 enhance indicat API() to wait for confirm or timeout from peer. 2018-01-30 14:27:38 +07:00
hathach cffa6456e4 fix typo 2018-01-23 13:19:10 +07:00
hathach 20a2db556c add indicate API, add getCccd to BLECharacteristic 2018-01-17 21:43:57 +07:00
hathach 6e42e931fa adding wr_cb to adacallback (pending) #88 2018-01-05 14:11:05 +07:00
hathach d6f81a2e8b clean up code 2018-01-05 13:42:51 +07:00
hathach 48cee0fa1d enhance BLECharacteristic
add read8(), read16(), read32(),
add write8(), write16(), write32()
add notify8(), notify16(), notify32()
2018-01-05 13:03:05 +07:00
hathach 4970eb116c implement HAP write value and read value response
improve debug visibility
2017-10-26 14:46:22 +07:00
hathach 3a6f88f704 clean up char handler 2017-10-16 17:31:04 +07:00
hathach 418a2f9cc1 add addDescriptor() for Characteristic 2017-10-15 14:23:10 +07:00
hathach 3b3885108f add char presenttation format descriptor support
- function setPresentationFormatDescriptor()
- add UUID16_UNIT* macro
-
2017-10-15 02:33:17 +07:00
hathach a0055a611e BLE Chars enhance
- default max_len to 20 bytes only (previously 512)
- rename setStringDescriptor to setUserDescriptor
2017-10-12 22:02:32 +07:00
hathach ec263bbe8d implement configurable ATT MTU #81 2017-10-10 15:16:30 +07:00
hathach abeb3825db separated TX packet to HVN and Write CMD packet 2017-10-06 11:00:18 +07:00
hathach 2da5145cbc fix compile error 2017-10-05 19:06:07 +07:00
hathach 0101bcc8fc complete refactor AdaCallback to generic arguments 2017-09-15 16:24:45 +07:00
hathach b8beb424de complete bufferTXD() for bleuart
- reduce default max connection interval from 40 to 30 ms
- finish firmata port
2017-07-28 01:44:51 +07:00
hathach 8add8a37b9 invoke BLEServer _disconnect_cb and _connect_cb 2017-07-26 11:30:19 +07:00
hathach 887d6a6541 improve saving bonding information
add devname into bonding data
2017-07-24 15:21:07 +07:00
hathach cb589bd7e7 clean up 2017-07-11 14:31:37 +07:00
hathach e45f489767 add BLECharacteristic destructor 2017-04-13 18:01:56 +07:00
hathach e86556fd8f API clean up 2017-04-13 11:09:59 +07:00
hathach dada11452e more return type change from err_t to bool 2017-04-09 13:47:18 +07:00
hathach f4b4ec0470 introduce BLEGap to manage part of GAP events 2017-03-30 22:59:20 +07:00
hathach a3cd4104b2 rename 2017-03-30 16:38:46 +07:00
hathach 3c0f3e84f1 introduce BLEGatt class 2017-03-30 16:36:59 +07:00
hathach 4cb70667f5 change write() return type to uint16_t 2017-03-27 20:43:16 +07:00
hathach 1cc6654adf clean up notify API 2017-03-27 20:09:40 +07:00
hathach 6ead6cc678 rename txbuf_get to getTxPacket 2017-03-27 16:50:13 +07:00
hathach be42b0a360 add parent service for central 2017-03-23 02:21:52 +07:00
hathach 71cc024ee4 clean up 2017-03-23 01:48:42 +07:00
hathach 666c00cbf4 clean up 2017-03-22 23:22:38 +07:00
hathach 6f0e361b8f adding BLECentralCharacteritic, add hid_camerashutter sketch 2017-03-22 13:38:22 +07:00
hathach 861af7b7e2 clean up BLEUuid merge uuid16 & uuid128 with copy operator
- also change DIS model to "Bluefruit Feather 52"
2017-03-20 18:21:33 +07:00
hathach a90c0b2589 add char read 2017-03-17 12:54:10 +07:00
hathach 92e61127da rename start() to begin() 2017-03-08 17:31:35 +07:00
hathach ed7ee448ee close #18 2017-03-05 14:29:02 +07:00
hathach f31b8ec41d change characteristic write callback signature 2017-02-28 17:12:12 +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
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 dd57126e93 move saveCCCD() to disconnect event 2017-02-23 23:59:23 +07:00
hathach 136f46331a add CCCD Write callback for BLECharacteristic 2017-02-21 17:24:23 +07:00