Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;