16#include "hardwaresettings.h"
17#include "framedecoder.h"
80 const std::map <int, Button> &
buttons()
const;
152 uint8_t setKeyOn (
int key,
bool v);
156 std::map <int, Button> m_button;
Control Panel.
Definition: controlpanel.h:30
bool hasButton(int key) const
Check if the hardware configuration has the button.
uint8_t setJet(bool v=true)
Start or stop the water jets.
uint8_t setBubble(bool v=true)
Start or stop the the bubble generator.
bool pushButton(int key)
Press and release a button.
static ControlPanel & singleton(const String &hwSettingsName)
bool setDesiredTemp(uint16_t temp)
Setting the desired water temperature.
static ControlPanel & singleton(const HardwareSettings &hwsettings)
Create the control panel singleton with the provided settings.
uint16_t waitForDesiredTemp(unsigned long MaxWaitingTimeMs=5000)
Press the TempUp button to read the desired temperature.
uint8_t setPower(bool v=true)
Start or stop the spa.
void begin()
Configures each of the buttons and initializes and connect with the spa.
Button & button(int key)
Button.
static ControlPanel * getInstance(const HardwareSettings &hwsettings)
Create the control panel instance with the provided settings.
uint8_t setFilter(bool v=true)
Start or stop the water filtration.
static ControlPanel * getInstance(const String &hwSettingsName)
bool isOpened() const
Indicates whether the connection with the spa is established.
uint8_t setHeater(bool v=true)
Start or stop water heating.
const std::map< int, Button > & buttons() const
Buttons list.
~ControlPanel()
Destructor.
bool setSanitizerTime(uint16_t time)
Set the water sanitation time.
This class decodes information from the technical block of the spa.
Definition: framedecoder.h:35
SpaIot name space.
Definition: bussettings.h:21