projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
communication.cpp
- Committer:
- MathieuM
- Date:
- 2018-09-25
- Revision:
- 33:2a6476c33e74
- Parent:
- 28:cf45b66e59f9
- Child:
- 45:60f602ecd59b
File content as of revision 33:2a6476c33e74:
#include "mbed.h" #include "communication.h" Serial wisol(SERIAL_PORT); void initCommunication() { wisol.baud(9600); } void sendMessage(char* data) { wisol.printf("AT$SF=%s", data); } char* genMessage(float h_sol, float h_air) { static char m[12]; return m; }