Container to restrict the time when the safe can be opened.
More...
#include <Configuration.h>
|
void | readFromFile (File &file) |
| Reads the content of this class from the configuration file stream. More...
|
|
void | writeToFile (File &file) |
| Writes all configuration items of this class to the file at the current stream position. More...
|
|
Container to restrict the time when the safe can be opened.
The safe can only be opened between start and endTime
◆ TimeRestrictions()
configuration::Configuration::TimeRestrictions::TimeRestrictions |
( |
| ) |
|
|
inline |
Construct a new Time Restrictions object.
◆ checkTime()
bool configuration::Configuration::TimeRestrictions::checkTime |
( |
| ) |
const |
|
inline |
check if the current time is valid for opening the safe
◆ readFromFile()
void configuration::Configuration::TimeRestrictions::readFromFile |
( |
File & |
file | ) |
|
|
inlineprotected |
Reads the content of this class from the configuration file stream.
- Parameters
-
file | file stream at the position where the data should be located |
◆ writeToFile()
void configuration::Configuration::TimeRestrictions::writeToFile |
( |
File & |
file | ) |
|
|
inlineprotected |
Writes all configuration items of this class to the file at the current stream position.
- Parameters
-
file | file stream at the position where the data should be located |
◆ Configuration
◆ endTime
uint32_t configuration::Configuration::TimeRestrictions::endTime |
The number of seconds after midnight until which the safe can be opened.
◆ restrictConfigurationServer
bool configuration::Configuration::TimeRestrictions::restrictConfigurationServer |
If set, the time when the configuration server can be started is restricted.
◆ restrictEmergencyKeyTimes
bool configuration::Configuration::TimeRestrictions::restrictEmergencyKeyTimes |
If set, the time when the emergency key is accepted is restricted.
◆ restrictHygieneOpeningTimes
bool configuration::Configuration::TimeRestrictions::restrictHygieneOpeningTimes |
If set, the time for hygiene openings is restricted.
◆ restrictUnlockTimes
bool configuration::Configuration::TimeRestrictions::restrictUnlockTimes |
If set, the safe can only be opened during the specified time using the normal unlock function.
◆ startTime
uint32_t configuration::Configuration::TimeRestrictions::startTime |
The number of seconds after midnight after which the safe can be opened.
The documentation for this class was generated from the following file: