minor re-organization of methods

This commit is contained in:
Rohit Grover 2015-06-03 15:14:52 +01:00
parent bab5a28166
commit 2dbe62da9e

View file

@ -57,10 +57,6 @@ public:
};
typedef void (*ReadCallback_t)(const ReadResponse_t *params);
static void setupOnDataRead(ReadCallback_t callback) {
onDataReadCallback = callback;
}
/**
* Initiate (or continue) a read for the value attribute, optionally at a
* given offset. If the Characteristic or Descriptor to be read is longer
@ -111,6 +107,10 @@ public:
// return (ble.getGattClient())->write(BLE_GATT_OP_WRITE_CMD, connHandle, length, value);
}
static void setupOnDataRead(ReadCallback_t callback) {
onDataReadCallback = callback;
}
void setupLongUUID(UUID::LongUUIDBytes_t longUUID) {
uuid.setupLong(longUUID);
}