codes in progress

Dependents:   RUCHE2-CODES RUCHE2-CODES_correctionpoids RUCHE2-CODES

Files at this revision

API Documentation at this revision

Comitter:
Sidibe
Date:
Wed Jan 23 14:27:12 2019 +0000
Parent:
1:2fdc567000f3
Commit message:
new step in our project

Changed in this revision

message.h Show annotated file Show diff for this revision Revisions of this file
message_1.h Show annotated file Show diff for this revision Revisions of this file
diff -r 2fdc567000f3 -r 330f063d8cfa message.h
--- a/message.h	Sat Jan 19 10:22:46 2019 +0000
+++ b/message.h	Wed Jan 23 14:27:12 2019 +0000
@@ -3,8 +3,8 @@
 
 #include "mbed.h"
 
-#define PIN_RX      PA_10
-#define PIN_TX      PA_9
+#define PIN_RX      PA_15
+#define PIN_TX      PA_2
 class Message {
     public:
         //Methodes:
@@ -38,12 +38,12 @@
             else this->sigfox.printf("%x", var);
         };*/
         
-        int16_t parseToUint16_t(int var){
+        int16_t parseToInt16_t(int var){
             int16_t temp = var * 100;
             return temp;
         };
         
-        int16_t parseToUint16_t(float var){
+        int16_t parseToInt16_t(float var){
             int16_t temp = var * 100;
             return temp;
         };
diff -r 2fdc567000f3 -r 330f063d8cfa message_1.h
--- a/message_1.h	Sat Jan 19 10:22:46 2019 +0000
+++ b/message_1.h	Wed Jan 23 14:27:12 2019 +0000
@@ -9,11 +9,11 @@
         //Methodes:
         
         //constructeur
-        Message_1(int messageType, int tempExt, int tempInt, int humidite, float masse):Message(messageType){
-            this->m_tempExt = this->parseToUint16_t(tempExt);
-            this->m_tempInt = this->parseToUint16_t(tempInt);
-            this->m_humidite = this->parseToUint16_t(humidite);
-            this->m_masse = this->parseToUint16_t(masse); 
+        Message_1(int messageType, float tempExt, float tempInt, int humidite, float masse):Message(messageType){
+            this->m_tempExt = this->parseToInt16_t(tempExt);
+            this->m_tempInt = this->parseToInt16_t(tempInt);
+            this->m_humidite = this->parseToInt16_t(humidite);
+            this->m_masse = this->parseToInt16_t(masse); 
         };
         
         void send(){