ble transmitter

Dependencies:   mbed BLE_API nRF51822

Revision:
2:f8dfdded83bf
Parent:
1:6659687d9cb0
Child:
3:76b8337374e7
diff -r 6659687d9cb0 -r f8dfdded83bf transmitter_main.cpp
--- a/transmitter_main.cpp	Wed Apr 17 20:21:20 2019 +0000
+++ b/transmitter_main.cpp	Wed Apr 17 20:32:42 2019 +0000
@@ -1,19 +1,19 @@
 #include "mbed.h"
 #include "ble/BLE.h"
-//#define LED_RED     p21
-//#define LED_GREEN   p22
-//#define LED_BLUE    p23
-//#define BUTTON_PIN  p17
-//#define BATTERY_PIN p1
+
 #define LED_RED     p22
+#define LED_GREEN   p21
+#define LED_BLUE    p23
+#define BUTTON_PIN  p17
+#define BATTERY_PIN p1
+
 DigitalOut led1(p21);
+const static char DEVICE_NAME[] = "Joe-Aidan";
 
-// sample comment
-typedef struct packet {
-    int increasing_sequence = 23;
-    const static char DEVICE_NAME[] = "Joe-Aidan";
-}
-     
+struct Packet {
+    uint32_t increasing_sequence;
+};
+
 static volatile bool  triggerSensorPolling = false;
 void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
 {