TYBLE16(BLE UART) module on Mbed system. Communicate with iPhone and send BME280 sensor data.

Dependencies:   BME280

Please refer following page.
/users/kenjiArai/notebook/tyble16-module--akizuki/

Files at this revision

API Documentation at this revision

Comitter:
kenjiArai
Date:
Sun Oct 29 23:25:26 2017 +0000
Parent:
0:c3a498a8091c
Commit message:
samll modification

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c3a498a8091c -r f2982d4f4037 main.cpp
--- a/main.cpp	Sat Oct 28 11:30:37 2017 +0000
+++ b/main.cpp	Sun Oct 29 23:25:26 2017 +0000
@@ -12,7 +12,7 @@
  *  http://www.page.sannet.ne.jp/kenjia/index.html
  *  http://mbed.org/users/kenjiArai/
  *      Created:    October   27th, 2017
- *      Revised:    October   28th, 2017
+ *      Revised:    October   30th, 2017
  */
 
 /*
@@ -98,7 +98,7 @@
             tyble16.printf("@h Humidity\r\n");
             break;
         default:        // no available command
-            tyble16.printf("ommand not avairable, hit '?'\r\n");
+            tyble16.printf("ommand not available, hit '@?'\r\n");
             break;
     }
     return true;
@@ -114,7 +114,6 @@
     pc.printf(" Peripheral(Sever) side\r\n");
     pc.printf("  created on %s %s\r\n", __DATE__, __TIME__);
     tyble16.printf("I'm TYBLE16 module!\r\n");
-    tyble16.printf("Hit q then enter <Uart Mode>\r\n");
     // warming up the sensor
     for (int n = 0; n < 6; n++){
         bme280.getPressure();
@@ -172,7 +171,7 @@
         state_connection = false;
         if (cmd_timeout_cntr == 0){
             // Both Advertising Start. Connectable and Discoverable.
-            tyble16.printf("BCD3\r\n");     // send above command
+            tyble16.printf("BCD3\r\n");     // send Advertising command
             cmd_timeout_cntr = ADT_TIME;
         }
     }