2023-07-31 14:28:10 -04:00
|
|
|
|
#pragma once
|
2023-08-11 18:16:48 -04:00
|
|
|
|
#include "HardwareInterface.h"
|
2023-07-31 14:28:10 -04:00
|
|
|
|
#include <iostream>
|
2023-08-11 18:16:48 -04:00
|
|
|
|
#include <string>
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
class HardwareSimulator : public HardwareInterface {
|
|
|
|
|
public:
|
|
|
|
|
HardwareSimulator() = default;
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
virtual void debugPrint(std::string message) override {
|
|
|
|
|
std::cout << message;
|
|
|
|
|
}
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
virtual void sendIR() override {}
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
virtual void MQTTPublish(const char *topic, const char *payload) override{
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
};
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
virtual void init() override { lv_init(); }
|
2023-07-31 14:28:10 -04:00
|
|
|
|
|
2023-08-11 18:16:48 -04:00
|
|
|
|
virtual batteryStatus getBatteryPercentage() {
|
|
|
|
|
batteryStatus fakeStatus;
|
|
|
|
|
fakeStatus.isCharging = false;
|
|
|
|
|
fakeStatus.percentage = 100;
|
|
|
|
|
fakeStatus.voltage = 4200;
|
|
|
|
|
return fakeStatus;
|
|
|
|
|
}
|
2023-07-31 14:28:10 -04:00
|
|
|
|
};
|