void send_sensor_data() {
struct zcan_frame temp_frame = {
.id = 0x101,
.dlc = 2,
.data = {temperature >> 8, temperature & 0xFF},
};
can_send(can_dev, &temp_frame, K_MSEC(100), NULL, NULL);
struct zcan_frame press_frame = {
.id = 0x102,
.dlc = 2,
.data = {pressure >> 8, pressure & 0xFF},
};
can_send(can_dev, &press_frame, K_MSEC(100), NULL, NULL);
}
void send_sensor_data() {
struct zcan_frame temp_frame = {
.id = 0x101,
.dlc = 2,
.data = {temperature >> 8, temperature & 0xFF},
};
can_send(can_dev, &temp_frame, K_MSEC(100), NULL, NULL);
struct zcan_frame press_frame = {
.id = 0x102,
.dlc = 2,
.data = {pressure >> 8, pressure & 0xFF},
};
can_send(can_dev, &press_frame, K_MSEC(100), NULL, NULL);
}