Commit Graph
47 Commits
Author SHA1 Message Date
hathach 940e902edd BLECharacteristic falls back to immed call if ada callback failed 2019-09-23 15:32:36 +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 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 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 a733a566c6 fix #192 client char write() return number of writtent instead of error 2018-11-09 11:51:44 +07:00
hathach 4640481d02 update Copyright year to 2018 2018-07-27 16:20:36 +07:00
hathach 96c7689e05 add send confirm to indicate 2018-01-18 15:09:52 +07:00
hathach d0655b369d change BLECLientCharacteristic notify callback signature
from
notify_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len)
to
notify_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len)

Added
2018-01-18 15:07:39 +07:00
hathach 4747a9b7ae add useAdaCallback option to setNotifyCallback(), setIndicateCallback() for client char 2018-01-18 14:00:04 +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 a6acaf573f clean up 2018-01-05 00:52:13 +07:00
hathach 8e153e3588 add read8,16,32, write8,16,32, write_resp8,16,32 2018-01-05 00:26:01 +07:00
hathach 0003e1af6e client characteristic rename assign, discoverDescriptor for internal ussage 2018-01-04 18:57:41 +07:00
hathach 0133b05fd7 add discover() to client characteristic
- add getHandleRange to client service
2018-01-04 18:42:37 +07:00
hathach 78b3906ec1 rename isValid() to discovered() 2018-01-04 12:03:45 +07:00
hathach 697bbcab18 added central_custom_hrm
add BLECLientCharacteristic isValid() and read 8,16, 32 bit
2018-01-03 16:23:09 +07:00
hathach 4970eb116c implement HAP write value and read value response
improve debug visibility
2017-10-26 14:46:22 +07:00
hathach 418a2f9cc1 add addDescriptor() for Characteristic 2017-10-15 14:23:10 +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 121f73475a add hdl_range para to discoverDescriptor()
fix ancs descritpor discover issue
2017-09-25 20:52:45 +07:00
hathach f7f4daa395 fix memory issue with discovery characteristic
- when Number of found chars > Number of expected chars
2017-09-25 20:11:09 +07:00
hathach 887d6a6541 improve saving bonding information
add devname into bonding data
2017-07-24 15:21:07 +07:00
hathach 2e886d43df user ada msg for Discovery 2017-07-19 12:47:21 +07:00
hathach f56c0dc458 add ClientCharacteristic disconnect() 2017-07-18 21:00:58 +07:00
hathach 4ff746a7f7 move AdaCallback files 2017-07-11 12:36:31 +07:00
hathach f74c723af7 add connHandle() for client char 2017-07-10 20:55:05 +07:00
hathach 89647bd02c [ancs] add high level getMessageSize(),
implement using AdaMsg
2017-04-14 18:01:23 +07:00
hathach fcddca77c5 correct ClientChar read() 2017-04-13 17:52:43 +07:00
hathach ae20fa0176 Adding BLEClientDis
- add get/set HandleRange for BLEDiscovery
- implement destructor for BLEClientCharacteristic
- add BLEGatt::_removeCharacteristic(client)
-
2017-04-13 17:22:49 +07:00
hathach 08187e3c15 implement gattc read 2017-04-13 14:54:46 +07:00
hathach 7933ddff68 clean up 2017-04-13 14:40:29 +07:00
hathach 8235db0ebf Implemnt gattc long write using AdaMsg 2017-04-13 14:27:00 +07:00
hathach 73b4fbacf4 faster implementation for Gattc long write 2017-04-13 13:23:13 +07:00
hathach 65bbab95fb add properties() 2017-04-13 11:24:37 +07:00
hathach e86556fd8f API clean up 2017-04-13 11:09:59 +07:00
hathach 482f0e987b wrap up gattc long write 2017-04-12 17:47:40 +07:00
hathach c718eff435 correct ClientCharacteristic write response with long support 2017-04-12 16:03:03 +07:00
hathach a4ff4c8bd3 more rename 2017-04-12 13:52:00 +07:00