HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: utils/src/Payload.cpp
- Revision:
- 14:baa7a1464517
- Parent:
- 12:a5d7db4a1e49
- Child:
- 18:6d5f4c638f6a
--- a/utils/src/Payload.cpp Tue Aug 05 06:33:39 2014 +0000 +++ b/utils/src/Payload.cpp Wed Aug 06 11:00:23 2014 +0000 @@ -79,4 +79,10 @@ uint8_t* str = payload[index].get_data(); int8_t value = (int8_t)str[0]; return value; -} \ No newline at end of file +} + +uint16_t Payload::getUint16AtIndex(int index) { + uint16_t* str = (uint16_t*)payload[index].get_data(); + uint16_t value = str[0]; + return value; + } \ No newline at end of file