23 lines
562 B
C
23 lines
562 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "ui_screen.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void metrics_ble_start(void);
|
|
bool metrics_ble_take_latest(ui_metrics_t *metrics);
|
|
bool metrics_ble_notify_status(int battery_percent, int battery_mv,
|
|
int temperature_c10, int humidity_percent,
|
|
uint32_t uptime_seconds, uint32_t internal_free_kb,
|
|
uint32_t psram_free_kb);
|
|
bool metrics_ble_take_ota_restart_request(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|