SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
button.cpp
Go to the documentation of this file.
1
#include "
sensesp.h
"
2
3
#include "
sensesp/system/button.h
"
4
5
#include "
sensesp_app.h
"
6
7
namespace
sensesp
{
8
9
void
ButtonHandler::handle_long_press
() {
10
ESP_LOGD(__FILENAME__,
"Resetting network settings"
);
11
SensESPApp::get
()->get_networking()->reset();
12
}
13
14
}
// namespace sensesp
button.h
sensesp::ButtonHandler::handle_long_press
virtual void handle_long_press() override
Handle a long button press (over 1 second).
Definition
button.cpp:9
sensesp::SensESPApp::get
static std::shared_ptr< SensESPApp > get()
Get the singleton instance of the SensESPApp.
Definition
sensesp_app.h:57
sensesp
Definition
sensesp.cpp:7
sensesp.h
sensesp_app.h
src
sensesp
system
button.cpp
Generated by
1.12.0