26#ifndef EDGEHOG_DEVICE_H
27#define EDGEHOG_DEVICE_H
29typedef struct edgehog_device_t *edgehog_device_handle_t;
36#include <astarte_device.h>
84 astarte_device_handle_t astarte_device;
85 const char *partition_label;
87 size_t telemetry_config_len;
128 edgehog_device_handle_t edgehog_device,
const char *serial_num);
140 edgehog_device_handle_t edgehog_device,
const char *part_num);
151 edgehog_device_handle_t edgehog_device, astarte_device_data_event_t *event);
Edgehog types and defines.
edgehog_err_t
Edgehog return codes.
Definition edgehog.h:39
telemetry_type_t
Edgehog telemetry types.
Definition edgehog_device.h:47
@ EDGEHOG_TELEMETRY_INVALID
Definition edgehog_device.h:48
@ EDGEHOG_TELEMETRY_GEOLOCATION_INFO
Definition edgehog_device.h:54
@ EDGEHOG_TELEMETRY_SYSTEM_STATUS
Definition edgehog_device.h:51
@ EDGEHOG_TELEMETRY_WIFI_SCAN
Definition edgehog_device.h:50
@ EDGEHOG_TELEMETRY_HW_INFO
Definition edgehog_device.h:49
@ EDGEHOG_TELEMETRY_STORAGE_USAGE
Definition edgehog_device.h:52
@ EDGEHOG_TELEMETRY_BATTERY_STATUS
Definition edgehog_device.h:53
esp_err_t edgehog_device_set_system_part_number(edgehog_device_handle_t edgehog_device, const char *part_num)
set the system part number
edgehog_err_t edgehog_device_start(edgehog_device_handle_t edgehog_device)
start Edgehog device.
void edgehog_device_destroy(edgehog_device_handle_t edgehog_device)
destroy Edgehog device.
void edgehog_device_astarte_event_handler(edgehog_device_handle_t edgehog_device, astarte_device_data_event_t *event)
receive data from Astarte Server.
edgehog_device_handle_t edgehog_device_new(edgehog_device_config_t *config)
create Edgehog device handle.
esp_err_t edgehog_device_set_system_serial_number(edgehog_device_handle_t edgehog_device, const char *serial_num)
set the system serial number
Edgehog device configuration struct.
Definition edgehog_device.h:83
Edgehog device configuration struct.
Definition edgehog_device.h:68