BoskoopBase/embadet/main/apple.h

27 lines
531 B
C
Raw Normal View History

2024-10-13 23:51:32 +02:00
#ifndef APPLE_H
#define APPLE_H
#include <esp_log.h>
#include <stdio.h>
#include <time.h>
#include <onewire.h>
2024-10-14 00:12:05 +02:00
#include <ds18b20.h>
2024-10-13 23:51:32 +02:00
#include <task.h>
#include <esp_wifi.h>
#include <FreeRTOSConfig.h>
2024-10-14 00:12:05 +02:00
#include <stdint.h> // Include for uint8_t
2024-10-13 23:51:32 +02:00
2024-10-14 00:12:05 +02:00
struct appledata {
2024-10-13 23:51:32 +02:00
uint8_t mac[6];
float temp;
2024-10-14 00:12:05 +02:00
float batteryVoltage; // Corrected spelling
uint32_t upTime; // Use uint32_t for uptime
2024-10-13 23:51:32 +02:00
};
2024-10-14 00:12:05 +02:00
// Function declarations
2024-10-13 23:51:32 +02:00
float getTemp();
int getUpTime();
void getmac(uint8_t *buf);
2024-10-14 00:12:05 +02:00
#endif // APPLE_H