Code for sensor nodes connected by radio receiver with gateway
Dependencies: mbed WakeUp coapRadioClient DHT11
Diff: msg.cpp
- Revision:
- 3:4ffffdb5230f
- Parent:
- 0:4c0d384fd5cf
--- a/msg.cpp Thu Jan 24 17:49:55 2019 +0000 +++ b/msg.cpp Fri Jan 25 02:01:01 2019 +0000 @@ -1,6 +1,6 @@ #include "msg.h" -#define UINT8_MAX 255; +#define UINT8_MAX 256 void Msg::construct_data_msg(uint8_t sensor_id, int data, uint8_t *buffer, int buffer_len) { if (buffer_len < 5)