Project IOT Polytech Paris UPMC - XTRM TRACKER

Dependencies:   mbed

Fork of Akene by Rémi Jourdain

Files at this revision

API Documentation at this revision

Comitter:
ycardaillac
Date:
Wed Feb 08 16:46:05 2017 +0000
Parent:
1:ce17068deacf
Commit message:
???

Changed in this revision

Akene.cpp Show annotated file Show diff for this revision Revisions of this file
Akene.h Show annotated file Show diff for this revision Revisions of this file
diff -r ce17068deacf -r 73eab7323221 Akene.cpp
--- a/Akene.cpp	Fri Nov 27 15:43:32 2015 +0000
+++ b/Akene.cpp	Wed Feb 08 16:46:05 2017 +0000
@@ -29,7 +29,8 @@
 Akene_ Akene;
 
 Akene_::Akene_() :
-    _serial(P4_28, P4_29) { //P4_25 = Tx P4_29 = Rx 
+    //_serial(P4_28, P4_29) { //P4_25 = Tx P4_29 = Rx 
+     _serial(D5, D4) {
      //Since _lastSend is unsigned, this is infinity
     _lastSend = -1;
     _T.start();
diff -r ce17068deacf -r 73eab7323221 Akene.h
--- a/Akene.h	Fri Nov 27 15:43:32 2015 +0000
+++ b/Akene.h	Wed Feb 08 16:46:05 2017 +0000
@@ -26,6 +26,7 @@
 #define AKENE_H
 
 #include "mbed.h"
+#include <SoftSerial.h>
 
 class Akene_ {
     public:
@@ -45,7 +46,7 @@
         };
 
     private:
-        Serial _serial;
+        SoftSerial _serial;
         unsigned long _lastSend;
         Timer _T;
         uint8_t _nextReturn();