put ts in structs

This commit is contained in:
2026-01-07 08:57:16 +01:00
parent 5359663c88
commit 49f883bf13
3 changed files with 26 additions and 20 deletions

View File

@@ -13,17 +13,23 @@
class Application {
public:
struct Config {
uint16_t lcd_interval_ms;
uint8_t lcd_contrast;
std::string lcd_port;
struct Lcd {
uint16_t refresh_interval_ms;
uint8_t contrast;
std::string port;
};
struct HomeAssistant {
std::string url;
std::string entity;
std::string token;
};
Lcd lcd;
HomeAssistant hass;
std::string cpu_pciaddr;
std::string gpu_pciaddr;
std::string sys_sensor;
std::string sys_ifname;
std::string home_dir;
std::string hass_url;
std::string hass_entity;
std::string hass_token;
};
explicit Application(Config config);