OMOTE/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp
Matthew Colvin cd603a2a83 Update Battery Interface by adding it to hardwareInterface
Remove Display out of some classes and leave comments to replace for callbacks
I dont know about the function of this code but it compiles :)
2023-09-09 21:44:47 -04:00

29 lines
689 B
C++

#pragma once
#include "HardwareInterface.h"
#include <iostream>
#include <string>
class HardwareSimulator : public HardwareInterface {
public:
HardwareSimulator() : HardwareInterface(nullptr){};
virtual void debugPrint(std::string message) override {
std::cout << message;
}
virtual void sendIR() override {}
virtual void MQTTPublish(const char *topic, const char *payload) override{
};
virtual void init() override;
virtual BatteryInterface::batteryStatus getBatteryPercentage() {
BatteryInterface::batteryStatus fakeStatus;
fakeStatus.isCharging = false;
fakeStatus.percentage = 100;
fakeStatus.voltage = 4200;
return fakeStatus;
}
};