Module sigfox pour le projet toiture

Dependents:   projet_embarque1 projet_embarque1

Committer:
3874313
Date:
Tue Oct 15 15:02:13 2019 +0000
Revision:
3:835369a16129
Parent:
2:fd9cadc78239
final;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
3874313 0:8172b6cb4020 1 #ifndef SIGFOX_H
3874313 0:8172b6cb4020 2 #define SIGFOX_H
3874313 0:8172b6cb4020 3
3874313 0:8172b6cb4020 4 #include "mbed.h"
3874313 0:8172b6cb4020 5
3874313 0:8172b6cb4020 6 typedef uint8_t u8;
3874313 0:8172b6cb4020 7 typedef uint16_t u16;
3874313 0:8172b6cb4020 8 typedef int16_t s16;
3874313 0:8172b6cb4020 9
3874313 1:11f6ddd8fdbe 10 class Sigfox: public Serial{
3874313 0:8172b6cb4020 11 public:
3874313 1:11f6ddd8fdbe 12 Sigfox(PinName tx, PinName rx);
3874313 0:8172b6cb4020 13
3874313 0:8172b6cb4020 14 /**
3874313 0:8172b6cb4020 15 * @brief Tester si le module sigfox est pret
3874313 0:8172b6cb4020 16 * @param
3874313 0:8172b6cb4020 17 * @retval 1 si OK, 0 sinon
3874313 0:8172b6cb4020 18 */
3874313 0:8172b6cb4020 19 bool ready();
3874313 0:8172b6cb4020 20
3874313 0:8172b6cb4020 21 /**
3874313 0:8172b6cb4020 22 * @brief Envoyer les parametres recuperees par les capteurs
3874313 0:8172b6cb4020 23 * @param Les valeurs detectees par les capteurs
3874313 0:8172b6cb4020 24 * @retval
3874313 0:8172b6cb4020 25 */
3874313 3:835369a16129 26 void send(s16 temp_air, u16 hum_air, s16 temp_sol, u16 hum_sol, u8 lum, u8 val_r, u8 val_g, u8 val_b,u8 bat);
3874313 2:fd9cadc78239 27
3874313 2:fd9cadc78239 28 // Sleep mode
3874313 2:fd9cadc78239 29 void sleep();
3874313 2:fd9cadc78239 30
3874313 2:fd9cadc78239 31 // Wake up
3874313 2:fd9cadc78239 32 void wake();
3874313 0:8172b6cb4020 33 };
3874313 0:8172b6cb4020 34
3874313 0:8172b6cb4020 35 #endif