NXPCup_Cachan / Mbed 2 deprecated S4_bluetooth_V1_bibli

Dependencies:   mbed

Revision:
0:9525cf87fb78
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 03 10:44:41 2020 +0000
@@ -0,0 +1,19 @@
+#include "bluetoothV1bibli.h"
+
+int val=5;                                  //la data 
+
+void data_on_blueth(void);                  //fonction d'interruption
+int main(void)
+{
+    Ticker timer;
+    
+    
+    init_blueth();                          
+    timer.attach(&data_on_blueth,0.005);   // creation de l'interruption
+    while(1) {}
+}
+
+void data_on_blueth(void)
+{
+    send_data(val);                        //A chaque IT
+}
\ No newline at end of file