Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers msg.h Source File

msg.h

00001 #ifndef MBEDDED_MSG_H
00002 #define MBEDDED_MSG_H
00003 
00004 #include<stdint.h>
00005 
00006 class Msg {
00007 public:
00008 
00009     static void construct_data_msg(uint8_t sensor_id, int data, uint8_t buffer[], int buffer_len);
00010 
00011     static void deconstruct_data_msg(uint8_t* sensor_id, int* data, uint8_t buffer[], int buffer_len);
00012 };
00013 
00014 #endif //MBEDDED_MSG_H