- 3 channel power sensor ina3221 - io expander pca9557 - Some gpio moves - ... Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
25 lines
382 B
C
25 lines
382 B
C
//
|
|
// Created by shinys on 25. 8. 18..
|
|
//
|
|
|
|
#ifndef ODROID_REMOTE_HTTP_MONITOR_H
|
|
#define ODROID_REMOTE_HTTP_MONITOR_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "esp_http_server.h"
|
|
|
|
#define SENSOR_BUFFER_SIZE 100
|
|
|
|
typedef struct
|
|
{
|
|
float voltage;
|
|
float current;
|
|
float power;
|
|
uint32_t timestamp;
|
|
} sensor_data_t;
|
|
|
|
void init_status_monitor();
|
|
|
|
#endif //ODROID_REMOTE_HTTP_MONITOR_H
|