BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS

Dependencies:   FatFileSystem mbed

Fork of BTstack by Norimasa Okamoto

Revision:
5:5fb56e13a1f9
Parent:
4:3e8cd77ee303
Child:
6:cf06ba884429
--- a/BLE_demo.cpp	Sun Feb 10 08:44:13 2013 +0000
+++ b/BLE_demo.cpp	Mon Feb 11 14:10:57 2013 +0000
@@ -31,14 +31,16 @@
  *
  */
 
-/*  changed
+/*  Change history
  2013/2/10: by todotani 
   Modified tick event handler
   Modified LED control
   - LED 3 flush when connected
   - LED 2 OFF in case write attribute, ON in case read attribute
   - LED 1 OFF of after start of advertisement, then reflect write value to 0xFFF2
-
+2013/2/11: by todotani
+  Changed serial pc.baud (115200 to 921600) to avoid imcomplete connection issue
+  Disable btstack debug-log
 */
 
 //*****************************************************************************
@@ -58,8 +60,6 @@
 Serial pc(USBTX, USBRX);
 DigitalOut led1(LED1), led2(LED2), led3(LED3);
 
-#define HEARTBEAT_PERIOD_MS 500
-
 // from btstack ble_server.c
 #include "global.h"
 #include "debug.h"
@@ -309,7 +309,7 @@
 // main
 int main(void)
 {
-    pc.baud(115200);
+    pc.baud(921600);
     log_info("%s\n", __FILE__);
 
     // init LEDs