Creating an IoT platform for smart agriculture. Collecting data and sending them to thingspeak for analysis

Dependencies:   DHT11 LPS22HB LSM6DSL VL53L0X

Revision:
0:07ff689741d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CANbus.cpp	Fri Jun 08 12:00:02 2018 +0000
@@ -0,0 +1,20 @@
+#include "CANbus.h"
+
+#ifndef MBED_H
+#define MBED_H
+#include "mbed.h"
+#endif
+
+struct VMS_Msg1 data_pack(int* data)
+{
+
+}
+
+void data_parse(struct VMS_Msg1 packed_data)
+{
+  battery_current = packed_data.battery_current;
+  battery_voltage = packed_data.battery_voltage;
+  Bat_SOC = packed_data.Bat_SOC;
+  speed = packed_data.speed;
+  motorTemperature = packed_data.motorTemperature;
+}