ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_task_communication.h
Go to the documentation of this file.
1 #ifndef RUUVI_TASK_COMMUNICATION_H
2 #define RUUVI_TASK_COMMUNICATION_H
3 
19 #include "ruuvi_driver_error.h"
20 #include "ruuvi_driver_sensor.h"
22 #include "ruuvi_interface_log.h"
23 
24 #define RT_COMM_MAC_STRLEN (18U)
25 #define RT_COMM_ID_STRLEN (24U)
26 
40 rd_status_t rt_com_get_mac_str (char * const mac_str, const size_t mac_len);
41 
53 rd_status_t rt_com_get_id_str (char * const id_str, const size_t id_len);
54 
57 #endif
uint32_t rd_status_t
bitfield for representing errors
rd_status_t rt_com_get_mac_str(char *const mac_str, const size_t mac_len)
Get MAC address of the device from radio driver and write it to given string.
rd_status_t rt_com_get_id_str(char *const id_str, const size_t id_len)
Get Unique ID of the device and write it to given string.
Ruuvi error codes and error check function.
Ruuvi sensor interface Lifecycle: Beta