Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: public/GattCharacteristicCallbackParams.h
- Revision:
- 292:b5ee2ada4f33
- Parent:
- 265:a0504765a357
- Child:
- 293:6278354cfd98
diff -r 0b66dd15728e -r b5ee2ada4f33 public/GattCharacteristicCallbackParams.h --- a/public/GattCharacteristicCallbackParams.h Mon Mar 02 11:50:47 2015 +0000 +++ b/public/GattCharacteristicCallbackParams.h Mon Mar 02 11:50:47 2015 +0000 @@ -33,6 +33,17 @@ const uint8_t *data; /**< Incoming data, variable length. */ }; +struct GattCharacteristicReadCBParams { + GattAttribute::Handle_t charHandle; + enum Type { + GATTS_CHAR_OP_INVALID = 0x00, /**< Invalid Operation. */ + GATTS_CHAR_OP_READ_REQ = 0x0A, /**< Read Request. */ + } op; /**< Type of write operation, */ + uint16_t offset; /**< Offset for the read operation. */ + uint16_t *len; /**< Length of the outgoing data. */ + uint8_t *data; /**< Outgoing data, variable length. */ +}; + struct GattCharacteristicWriteAuthCBParams { GattAttribute::Handle_t charHandle; uint16_t offset; /**< Offset for the write operation. */