Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed WakeUp coapRadioClient DHT11
Diff: msg.h
- Revision:
- 0:4c0d384fd5cf
- Child:
- 3:4ffffdb5230f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/msg.h Thu Jan 24 16:40:14 2019 +0000
@@ -0,0 +1,18 @@
+#ifndef MBEDDED_MSG_H
+#define MBEDDED_MSG_H
+
+#include<stdint.h>
+
+class Msg {
+public:
+
+ static void construct_data_msg(uint8_t sensor_id, int data, uint8_t buffer[], int buffer_len);
+
+ static void deconstruct_data_msg(uint8_t* sensor_id, int* data, uint8_t buffer[], int buffer_len);
+
+ static void construct_config_msg(uint8_t sensor_id, int interval, uint8_t buffer[], int buffer_len);
+
+ static void deconstruct_config_msg(uint8_t sensor_id, int interval, uint8_t buffer[], int buffer_len);
+};
+
+#endif //MBEDDED_MSG_H