codes in progress
Dependents: RUCHE2-CODES_correctiondepoids RUCHE2-CODES_correction_de_poids
Diff: message_1.h
- Revision:
- 3:7542ed5cd721
- Parent:
- 2:330f063d8cfa
--- a/message_1.h Wed Jan 23 14:27:12 2019 +0000 +++ b/message_1.h Mon Feb 04 11:46:26 2019 +0000 @@ -9,14 +9,14 @@ //Methodes: //constructeur - Message_1(int messageType, float tempExt, float tempInt, int humidite, float masse):Message(messageType){ + Message_1(float tempExt, float tempInt, int humidite, float masse):Message(){ 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(){ + + void send(){ //envoie de donnee a sigfox char donnee[] = "AT$SF="; this->sigfox.printf(donnee); this->writeInSendBuffer(this->m_tempExt); @@ -48,6 +48,7 @@ int16_t m_tempInt; int16_t m_humidite; int16_t m_masse; + };