SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
Classes | |
class | AirDensity |
Transforms temperature, relative humidity and pressure in air density. More... | |
class | AnalogInput |
Sensor for reading the MCU analog input pins. More... | |
class | AnalogVoltage |
A transform that takes the output of an analog-to-digital converter and outputs the voltage that went into it. (This can be the built-in ADC on the ESP, or it can be an external ADC like the ADS1015/1115.) More... | |
class | AngleCorrection |
Add a value to an angle input (in radians). The output value is wrapped to a range between [0, 2*pi]. This transform is useful for correcting e.g. a heading or a wind direction reading. More... | |
class | BaseAnalogReader |
Used by AnalogInput as a hardware abstraction layer. More... | |
class | BaseBlinker |
A base class for LED blinker classes. More... | |
class | BaseButtonHandler |
Base class for button handlers. More... | |
class | ButtonHandler |
Default Button Handler for SensESPApp applications. More... | |
class | ChangeFilter |
A float passthrough transform that will only pass that value through if it is "sufficiently different" from the last value passed through. More... | |
class | ClickType |
ClickType is a transform that consumes button clicks and translates them as events of type ClickTypes . More... | |
class | Configurable |
An object that is capable of having configuration data that can be set remotely using a RESTful API, and can be persisted to the local file system. More... | |
class | ConstantSensor |
Base class for constant value sensors. More... | |
class | CurveInterpolator |
Implement a piecewise linear interpolation transform. More... | |
class | DebounceTemplate |
Implements debounce code for a button or switch. More... | |
class | DebugOutput |
Initialize logging/debug output. More... | |
class | DewPoint |
Transforms temperature and relative humidity in dew point temperature. More... | |
class | Difference |
class | DigitalInput |
DigitalInput is the base class for reading a digital GPIO pin. More... | |
class | DigitalInputChange |
DigitalInputChange provides output whenever a digital pin changes its state. More... | |
class | DigitalInputCounter |
DigitalInputCounter counts interrupts and reports the count every read_delay ms. More... | |
class | DigitalInputDebounceCounter |
DigitalInputDebounceCounter counts interrupts and reports the count every read_delay ms, but ignores events that happen within ignore_interval_ms. More... | |
class | DigitalInputState |
DigitalInputState polls the state of an input pin every read_delay ms. More... | |
class | DigitalOutput |
Sets a GPIO pin to whatever the input is (true = HIGH, false = LOW), and passes the value on to the next ValueConsumer. More... | |
class | Enable |
On/off switch for signals: input is emitted as-is if the enable flag is set in the web UI. More... | |
struct | ENUVector |
Container for local tangent plane coordinates. More... | |
class | ESP32AnalogReader |
class | EvenBlinker |
An LED blinker class that blinks the LED 50% off, 50% on, at a given period. More... | |
class | Filesystem |
class | FloatThreshold |
Translates a float value into a boolean value, which depends on whether the float value is "in range" or "out of range". More... | |
class | FreeMem |
Reports the current amount of unused memory of the ESP. More... | |
class | Frequency |
Transforms its input into frequency (Hz: cycles per second) More... | |
class | HeatIndexEffect |
Transforms heat index temperature to heat index effect. More... | |
class | HeatIndexTemperature |
Transforms temperature and relative humidity in heat index temperature. More... | |
class | HTTPServer |
Handles external interactions with the device via the web interface. More... | |
class | Hysteresis |
Hysteresis function. More... | |
class | IntegratorT |
Integrator integrates (accumulates) the incoming values. More... | |
class | IntThreshold |
Translates an integer value into a boolean value, which depends on whether the integer value is "in range" or "out of range". More... | |
class | IPAddrDev |
Reports the IP address of the ESP once it's connected to wifi. More... | |
class | LambdaConsumer |
Provides an easy way of calling a function based on the output of any ValueProducer. More... | |
class | LambdaTransform |
Construct a new transform based on a single function. More... | |
class | Linear |
Performs a linear transform on the input value: output = (input * multiplier) + offset. More... | |
class | LocalDebug |
class | MDNSDiscovery |
class | Median |
Outputs the median value of sample_size inputs. More... | |
class | MinimalButtonHandler |
Minimal Button Handler. More... | |
class | MovingAverage |
Outputs the moving average of the last sample_size inputs. More... | |
class | Networking |
Manages the ESP's connection to the Wifi network. More... | |
class | Observable |
A base class which allow observers to attach callbacks to themselves. The callbacks will be called when the observable needs to notify the observers about some state change. More... | |
class | ObservableValue |
A value that notifies its observers if it gets changed. More... | |
class | OTA |
struct | ParamInfo |
class | PatternBlinker |
A blinker that blinks the LED according to a defined repeating pattern. More... | |
class | PeriodicBlinker |
A base class for periodic blinkers. More... | |
struct | Position |
Position data container. More... | |
class | PressRepeater |
A transform that takes boolean inputs and adds button behaviors familiar to many device end users. More... | |
class | PWMOutput |
Provides a cross platform mechanism for generating Pulse Width Modulation signals over one or more GPIO pins on the MCU. More... | |
class | RatioBlinker |
A periodic blinker that defines both the on-ratio and the period length. More... | |
class | RepeatReport |
Ensures that values that do not change frequently are still reported at a specified maximum silence interval. If the value has not changed in max_silence_interval milliseconds, the current value is emmitted again. More... | |
class | RepeatSensor |
class | Resettable |
Automatic calling of the reset() method when the device needs to be reset. More... | |
class | ResettableCompare |
class | RgbLed |
A special device object that can be used to control a multi-channel color rgb LED light using up to 3 digital output channels. A "color" is defined using the standard 24 bit color depth numbers composed of three 8 bit channels for Red, Green, and Blue (see https://techterms.com/definition/rgb) More... | |
class | RoundToInt |
Takes as its input a float, rounds it to the nearest whole number, then outputs it as an int. More... | |
class | SensESPApp |
class | SensESPAppBuilder |
A class for quickly configuring a SensESP application object before wiring up your sensors. More... | |
class | SensESPBaseApp |
The base class for SensESP applications. More... | |
class | SensESPBaseAppBuilder |
Abstract base class for other SensESP*AppBuilder classes. More... | |
class | SensESPMinimalApp |
class | SensESPMinimalAppBuilder |
class | Sensor |
The base class for all sensors. Used only as a base class - never instantiated directly in a project. More... | |
class | SensorT |
Sensor template class for any sensor producing actual values. More... | |
class | SKDeltaQueue |
Signal K delta queue. More... | |
class | SKEmitter |
A class that produces Signal K output to be forwarded to the Signal K server (if the system is connected to one). Signal K is reported via the as_signalK() method. More... | |
class | SKListener |
An Obervable class that listens for Signal K stream deltas and notifies any observers of value changes. This serves as a base class for code that needs to listen to the stream, with the most common descendant being SKValueListener More... | |
class | SKMetadata |
Holds Signal K meta data that is associated with the sk_path an SKEmitter class may optionally send to the server. According to the official Signal K specification: "All keys in the Signal K
specification must have a <tt>description</tt>, and where the key is a numeric value
it must have <tt>units</tt>". Thus, any paths that you output that are not already part of the official Signal K specification should have these two fields defined as metadata. More... | |
class | SKOutput |
A specialized transform whose primary purpose is to output Signal K data on the Signal K network. More... | |
class | SKOutputNumeric |
A special class for sending numeric values to the Signal K server on a specific Signal K path. More... | |
class | SKOutputRawJson |
Class for sending raw Json strings on a specific Signal K path. More... | |
class | SKOutputTime |
class | SKPutListener |
An Obervable class that listens for Signal K PUT requests coming over the websocket connection and notifies observers of the change. More... | |
class | SKPutRequest |
Used to send requests to the server to change the value of the specified path to a specific value according to the specification at https://signalk.org/specification/1.5.0/doc/put.html. More... | |
class | SKPutRequestBase |
A base class for all template variations of the PUT request class SKPutRequest. This base class keeps the compiler from generating reduntant object code for common functionality of each template version. More... | |
class | SKPutRequestListener |
An object that listens for PUT requests to come in for the specified SignalK path. The value is then emitted for further processing. More... | |
class | SKRequest |
A base class for all objects that are capable of sending "requests" to the SignalK server (and optionally receiving the responses) according to the specification located at https://signalk.org/specification/1.5.0/doc/request_response.html. More... | |
class | SKValueListener |
An ValueProducer that listens to specific Signal K paths and emits its value whenever it changes. More... | |
class | SmartSwitchController |
A high level transform designed to control a digital output (such as a relay) via manual button presses or programatic commands. More... | |
class | Startable |
Automatic calling of the start() method at startup. More... | |
class | StartableCompare |
class | SymmetricTransform |
A common type of transform that consumes, transforms, then outputs values of the same data type. More... | |
class | SystemHz |
Reports the current clock speed of the ESP. More... | |
class | SystemStatusController |
Base class for a controller that can react to system status events. More... | |
class | SystemStatusLed |
Consumes the networking and websocket states and delta counts and updates the device LED accordingly. Inherit this class and override the methods to customize the behavior. More... | |
class | TaskQueueProducer |
Producer class that works across task boundaries. More... | |
class | TextToTruth |
Consumes a string and outputs boolean "true" if the text represents a human readable version of "true". More... | |
class | ThresholdTransform |
A Transform base class that translates the value of type C into value of type P. Base class for classes FloatThreshold and IntThreshold. More... | |
class | TimeCounter |
A transform that outputs the duration of the input value being true or non-null. More... | |
class | TimeString |
Consumes a time_t time object and produces a human readable string of the time for UTC in ISO 8601 format. More... | |
class | Transform |
The main Transform class. A transform is identified primarily by the type of value that is produces (i.e. a Transform<float> is a ValueProducer<float> that generates float values) More... | |
class | TransformBase |
The base class for all transforms. A transforms takes a value in, transforms it in some way, and outputs the transformed value. More... | |
class | TruthToText |
Consumes a boolean value and outputs one the appropriate truth string specified in the constructor. This is the inverse of TextToTruth. More... | |
class | Typecast |
Converts input from one data type to another, then outputs the new type. More... | |
class | UIButton |
UIButton implements a button interface on the web UI. More... | |
class | UILambdaOutput |
class | UIOutput |
class | UIOutputBase |
class | Uptime |
Reports the number of seconds since the last restart of the ESP. More... | |
class | ValueConsumer |
A base class for piece of code (like a transform) that accepts data for input. ValueConsumers can accept one or more input values via the set_input() method. They are connected to ValueProducers via the connect_to() method. More... | |
class | ValueProducer |
A base class for any sensor or piece of code that outputs a value for consumption elsewhere. More... | |
class | VoltageDividerR1 |
Uses the voltage divider formula to calculate (and output) the resistance of R1 in the circuit. More... | |
class | VoltageDividerR2 |
Uses the voltage divider formula to calculate (and output) the resistance of R2 in the circuit. More... | |
class | VoltageMultiplier |
OBSOLETE: Since you can now apply an "output_scale" to the AnalogInput sensor, you don't need this transform anymore. See the description of "output_scale" in analog_input.h. More... | |
class | WiFiSignal |
Reports the current strength of the wifi signal that the ESP is connected to. More... | |
class | WiFiStateProducer |
Provide information about the current WiFi state. More... | |
class | WSClient |
The websocket connection to the Signal K server. More... | |
Enumerations | |
enum class | SystemStatus { kWifiNoAP = 100 , kWifiDisconnected , kWifiManagerActivated , kWSDisconnected , kWSAuthorizing , kWSConnecting , kWSConnected } |
enum class | WiFiState { kWifiNoAP = 0 , kWifiDisconnected , kWifiConnectedToAP , kWifiManagerActivated , kWifiAPModeActivated } |
enum class | WSConnectionState { kWSDisconnected , kWSAuthorizing , kWSConnecting , kWSConnected } |
enum class | ClickTypes { ButtonPress , ButtonRelease , SingleClick , LongSingleClick , UltraLongSingleClick , DoubleClick } |
Definition at line 76 of file integrator.h.
Definition at line 64 of file analog_reader.h.
Definition at line 97 of file constant_sensor.h.
Definition at line 51 of file valueconsumer.h.
Definition at line 102 of file transform.h.
Definition at line 124 of file valueproducer.h.
Definition at line 38 of file signalk_value_listener.h.
Definition at line 173 of file signalk_put_request.h.
Definition at line 68 of file signalk_put_request_listener.h.
Definition at line 43 of file typecast.h.
Definition at line 92 of file debounce.h.
Definition at line 90 of file debounce.h.
Definition at line 95 of file debounce.h.
Definition at line 93 of file debounce.h.
Definition at line 95 of file constant_sensor.h.
Definition at line 49 of file valueconsumer.h.
Definition at line 122 of file valueproducer.h.
Definition at line 36 of file signalk_value_listener.h.
Definition at line 171 of file signalk_put_request.h.
Definition at line 66 of file signalk_put_request_listener.h.
Definition at line 46 of file typecast.h.
Definition at line 100 of file transform.h.
Definition at line 96 of file constant_sensor.h.
Definition at line 50 of file valueconsumer.h.
Definition at line 101 of file transform.h.
Definition at line 75 of file integrator.h.
Definition at line 123 of file valueproducer.h.
Definition at line 37 of file signalk_value_listener.h.
Definition at line 172 of file signalk_put_request.h.
Definition at line 67 of file signalk_put_request_listener.h.
Definition at line 42 of file typecast.h.
Definition at line 45 of file typecast.h.
Definition at line 134 of file signalk_output.h.
Definition at line 132 of file signalk_output.h.
Definition at line 133 of file signalk_output.h.
Definition at line 15 of file signalk_position.h.
Definition at line 135 of file signalk_output.h.
Definition at line 98 of file constant_sensor.h.
Definition at line 52 of file valueconsumer.h.
Definition at line 125 of file valueproducer.h.
Definition at line 39 of file signalk_value_listener.h.
Definition at line 174 of file signalk_put_request.h.
Definition at line 69 of file signalk_put_request_listener.h.
Definition at line 103 of file transform.h.
typedef std::function<void()> sensesp::void_cb_func |
Definition at line 15 of file wifi_state.h.
|
strong |
ClickTypes defines the types of clicks and button presses a ClickType transform can detect
Enumerator | |
---|---|
ButtonPress | |
ButtonRelease | |
SingleClick | |
LongSingleClick | |
UltraLongSingleClick | |
DoubleClick |
Definition at line 14 of file click_type.h.
|
strong |
Enumerator | |
---|---|
kWifiNoAP | |
kWifiDisconnected | |
kWifiManagerActivated | |
kWSDisconnected | |
kWSAuthorizing | |
kWSConnecting | |
kWSConnected |
Definition at line 10 of file system_status_controller.h.
|
strong |
Enumerator | |
---|---|
kWifiNoAP | |
kWifiDisconnected | |
kWifiConnectedToAP | |
kWifiManagerActivated | |
kWifiAPModeActivated |
Definition at line 6 of file wifi_state.h.
|
strong |
Enumerator | |
---|---|
kWSDisconnected | |
kWSAuthorizing | |
kWSConnecting | |
kWSConnected |
Definition at line 20 of file ws_client.h.
bool sensesp::canConvertFromJson | ( | JsonVariantConst | src, |
const Position & | |||
) |
Tells ArduinoJson whether the given JSON is a Position or not.
This function is automatically called by ArduinoJson whenever it has to convert a JSON to a Position struct.
src | A JSON document |
Definition at line 16 of file position.cpp.
void sensesp::connect_system_info_sensor | ( | SensorT< T > * | sensor, |
String | prefix, | ||
String | name | ||
) |
Connect a system information sensor to SKOutput.
Definition at line 17 of file system_info.h.
void sensesp::convertFromJson | ( | JsonVariantConst | src, |
Position & | dst | ||
) |
Adds support in ArduinoJson to deserialize Position type data.
This is an ArduinoJson custom converter to convert position type data from JSON into a Postion struct. The JSON data must at least contain "latitude" and "longitude", "altitude" is optional. ArduinoJson will automatically call this function whenever it has to convert a JSON to a Position struct. More info here: https://arduinojson.org/news/2021/05/04/version-6-18-0/
src | The JSON document containing the position data |
dst | The address to a Position struct to write the data to |
Definition at line 7 of file position.cpp.
Definition at line 24 of file ws_client.cpp.
String sensesp::generate_uuid4 | ( | ) |
Definition at line 21 of file lambda_transform.cpp.
Definition at line 21 of file lambda_transform.cpp.
Definition at line 11 of file lambda_transform.cpp.
Definition at line 11 of file lambda_transform.cpp.
Definition at line 16 of file lambda_transform.cpp.
Definition at line 16 of file lambda_transform.cpp.
Convert the variable type to a string representation of the type using template specializations.
Definition at line 25 of file lambda_transform.h.
bool sensesp::operator!= | ( | ObservableValue< T > const & | lhs, |
T const & | rhs | ||
) |
Definition at line 19 of file observablevalue.h.
bool sensesp::operator== | ( | ObservableValue< T > const & | lhs, |
T const & | rhs | ||
) |
Definition at line 14 of file observablevalue.h.
WebSocket event handler.
This function will be called in the websocket task.
type | |
payload | |
length |
Definition at line 57 of file ws_client.cpp.
|
extern |
std::map< String, Configurable * > sensesp::configurables |
Definition at line 12 of file configurable.cpp.
DEBUG_CLASS sensesp::Debug |
Definition at line 14 of file debug_output.cpp.
Definition at line 9 of file hysteresis.h.
Definition at line 19 of file sensesp_base_app.h.
Value used to indicate an invalid or missing altitude.
Definition at line 11 of file position.h.
Definition at line 6 of file sensesp_version.h.
Definition at line 15 of file ui_output.h.
Definition at line 16 of file ui_output.h.
int sensesp::no_ap_pattern[] = {50, 950, PATTERN_END} |
Definition at line 12 of file system_status_led.cpp.
SensESPApp * sensesp::sensesp_app |
Definition at line 89 of file sensesp_app.cpp.
|
extern |
int sensesp::wifi_connected_pattern[] = {700, 300, PATTERN_END} |
Definition at line 18 of file system_status_led.cpp.
int sensesp::wifi_disconnected_pattern[] = {300, 700, PATTERN_END} |
Definition at line 15 of file system_status_led.cpp.
int sensesp::wifimanager_pattern[] = {1000, 0, PATTERN_END} |
Definition at line 24 of file system_status_led.cpp.
int sensesp::ws_authorizing_pattern[] = {200, 200, PATTERN_END} |
Definition at line 33 of file system_status_led.cpp.
WSClient* sensesp::ws_client |
Definition at line 20 of file ws_client.cpp.
Definition at line 18 of file ws_client.cpp.
int sensesp::ws_connected_pattern[] = {900, 100, PATTERN_END} |
Definition at line 27 of file system_status_led.cpp.
int sensesp::ws_connecting_pattern[] = {650, 50, 50, 50, 50, 50, 50, 50, PATTERN_END} |
Definition at line 21 of file system_status_led.cpp.
int sensesp::ws_disconnected_pattern[] = {50, 50, 50, 50, 50, 50, 50, 650, PATTERN_END} |
Definition at line 30 of file system_status_led.cpp.