Creating an IoT platform for smart agriculture. Collecting data and sending them to thingspeak for analysis
Dependencies: DHT11 LPS22HB LSM6DSL VL53L0X
CANbus.cpp
- Committer:
- kaoriw
- Date:
- 2018-06-08
- Revision:
- 1:469ea8167b80
- Parent:
- 0:07ff689741d2
File content as of revision 1:469ea8167b80:
#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; }