Dependencies: mbed BLE_API nRF51822
Revision 7:176395d8287a, committed 2018-12-29
- Comitter:
- TakumiShinoda
- Date:
- Sat Dec 29 02:43:38 2018 +0000
- Parent:
- 6:1841ac6f3a87
- Commit message:
- first commit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1841ac6f3a87 -r 176395d8287a main.cpp --- a/main.cpp Sat Dec 29 02:36:34 2018 +0000 +++ b/main.cpp Sat Dec 29 02:43:38 2018 +0000 @@ -17,6 +17,13 @@ //------------------------------------------------------------ +//Command Code +//------------------------------------------------------------ +uint8_t ForwardComm[4] = {0, 0, 0, 0}; +uint8_t BackComm[4] = {1, 1, 1, 1}; + + +//------------------------------------------------------------ //Object generation //------------------------------------------------------------ BLE ble; @@ -70,9 +77,6 @@ //====================================================================== void WrittenHandler(const GattWriteCallbackParams *Handler) { - uint8_t ForwardComm[4] = {4, 1, 2, 6}; - uint8_t BackComm[4] = {6, 2, 1, 4}; - uint8_t buf[4] = {0}; uint16_t bytesRead;