16#include "hardwaresettings.h"
17#include "framedecoder.h"
Control Panel.
Definition controlpanel.h:29
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.
ControlPanel(const String &hwSettingsName)
Construct a new Control Panel object.
virtual void begin(const HardwareSettings &hwsettings, unsigned long waitingTimeMs=BeginWaitingTimeMs)
Configures each of the buttons and initializes and connect with the spa.
virtual bool isOpen() const
Indicates whether the connection with the spa is established.
bool setDesiredTemp(uint16_t temp)
Setting the desired water temperature.
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.
ControlPanel()
Default constructor.
Button & button(int key)
Button.
void end()
Close the FrameDecoder.
uint8_t setFilter(bool v=true)
Start or stop the water filtration.
virtual void begin(const String &hwSettingsName, unsigned long waitingTimeMs=BeginWaitingTimeMs)
Configures each of the buttons and initializes and connect with the spa.
const std::map< int, ButtonSettings > buttonSettings() const
Button settings provides.
uint8_t setHeater(bool v=true)
Start or stop water heating.
bool setSanitizerTime(uint16_t time)
Set the water sanitation time.
ControlPanel(const HardwareSettings &hwsettings)
Construct a new Control Panel object.
virtual void begin(unsigned long waitingTimeMs=BeginWaitingTimeMs)
Configures each of the buttons and initializes and connect with the spa.
This class decodes information from the technical block of the spa.
Definition framedecoder.h:30
This class represents the hardware settings of a SpaIot device.
Definition hardwaresettings.h:25
SpaIot name space.
Definition bussettings.h:15
const unsigned long BeginWaitingTimeMs
begin() waiting time in milliseconds
Definition global.h:85