SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp_minimal_app_builder.h
Go to the documentation of this file.
1#ifndef SENSESP_MINIMAL_APP_BUILDER_H
2#define SENSESP_MINIMAL_APP_BUILDER_H
3
6
7namespace sensesp {
8
10 protected:
11 std::shared_ptr<SensESPMinimalApp> app_;
12
13 public:
15 SensESPMinimalAppBuilder* set_hostname(String hostname) override {
16 app_->set_hostname(hostname);
17 return this;
18 }
19 std::shared_ptr<SensESPMinimalApp> get_app() {
20 app_->setup();
21 return app_;
22 }
23};
24
25} // namespace sensesp
26#endif
Abstract base class for other SensESP*AppBuilder classes.
SensESPMinimalAppBuilder * set_hostname(String hostname) override
std::shared_ptr< SensESPMinimalApp > get_app()
std::shared_ptr< SensESPMinimalApp > app_
static const std::shared_ptr< SensESPMinimalApp > get()
Get the singleton instance of the SensESPMinimalApp.