Commit Graph
84 Commits
Author SHA1 Message Date
hathach c88bd0092f Merge branch 'master' into develop 2019-04-04 20:34:43 +07:00
hathach 9b0bf8b817 move conn_hdl to 1st parameter in indicate API 2019-02-28 14:21:16 +07:00
hathach 3b9805f124 move conn_hdl to the first parameter for connection specific API 2019-02-28 14:16:37 +07:00
hathach a4487a22f7 minor service clean up 2019-02-27 20:09:13 +07:00
hathach 3b712a04a3 clean up 2019-02-26 21:36:03 +07:00
hathach 3f01e1f069 remove offset parameter in BLECharacteristic's write_cb_t signature 2019-02-26 21:32:51 +07:00
hathach 5768575c42 add conn_hdl to all BLECharacteristic callback to support multiple prph connections
- added optional conn_hdl to getCccd(), indicateEnabled(),
notifyEnabled()
- added optional conn_hdl to all indicate() and notify() data function
2019-02-26 15:34:26 +07:00
hathach 3c27998c8f Merge pull request #229 from techno/master
Bug Fix: Incorrect cast on BLECharacteristic::read32()
2019-02-15 11:07:24 +07:00
Hirotaka Kawata 2aef4dd2f0 Bug Fix: Incorrect cast on BLECharacteristic::read32() 2019-02-14 20:09:12 +09:00
hathach c09b65c425 use ada callback for long write exe callback 2019-02-14 13:09:38 +07:00
hathach e13922c58b enhance ada_callback, add malloc len for cleaner usage 2019-02-14 12:50:17 +07:00
hathach 333f151ff5 Merge branch 'master' into develop 2019-02-13 22:25:26 +07:00
hathach e05bdc9030 implement BLECharacteristic long write #91,#220 2019-02-13 14:57:36 +07:00
hathach b7323d1819 Remove BLEGap, API function is taken by Bluefruit, BLEPeriph, BLECentral 2019-02-01 16:16:20 +07:00
hathach b9a9453abc close #88 use ada callback thread for BLECharacteristic callback
includes: write, cccd write, read authorize, write authorize
2019-01-23 15:48:49 +07:00
hathach 7b00b2103d change BLECharacteristic callback signature BLECharacteristic& to BLECharacteristic* 2019-01-23 13:14:46 +07:00
hathach 5d76dfa012 clean up 2019-01-22 23:04:29 +07:00
hathach 89be3a197f rename Gap.getConnection() to simply Connection() 2019-01-22 22:54:33 +07:00
hathach fc35f9f0cd bleconnection clean up 2019-01-21 16:12:04 +07:00
hathach 2f645e6bca renane getMTU() to getMtu() 2019-01-19 01:51:19 +07:00
hathach 4e5f419474 rename BLEGapConnection to BLEConnection, move to seperate files 2019-01-18 12:31:40 +07:00
hathach a9ac9d994e adding BLEGapConnection
- getHvnPacket()
- getWriteCmdPacket()
- getMTU()
2019-01-17 20:00:08 +07:00
hathach 6383861ea5 update changelog 2019-01-09 21:15:09 +07:00
hathach 17a3737145 Merge branch 'master' into master 2019-01-09 20:58:36 +07:00
Petr Nejedly 89ba0b1aac Fix upstream issue #173 - lost UART packets.
In case the application is sending more notifications back-to-back
and the framework has no free buffer slots error code was returned
instead of false, which was interpreted as success.
Return false in such a case, in line with SD buffer overflow handling
below.
2018-09-01 11:54:58 -07:00
hathach 4640481d02 update Copyright year to 2018 2018-07-27 16:20:36 +07:00
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