Loading [MathJax]/jax/input/TeX/config.js
SensESP 3.1.0
Universal Signal K sensor toolkit ESP32
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sensesp::BaseSystemStatusLed Class Referenceabstract

Consumes the networking and websocket states and delta counts and updates the device LED accordingly. More...

#include <sensesp/system/system_status_led.h>

Inheritance diagram for sensesp::BaseSystemStatusLed:
[legend]

Public Member Functions

 BaseSystemStatusLed ()
 
ValueConsumer< SystemStatus > & get_system_status_consumer ()
 
ValueConsumer< int > & get_delta_tx_count_consumer ()
 

Public Attributes

LambdaConsumer< SystemStatussystem_status_consumer_
 

Protected Member Functions

virtual void show ()=0
 
virtual void set_brightness (uint8_t brightness)=0
 
virtual void set_wifi_no_ap ()
 
virtual void set_wifi_disconnected ()
 
virtual void set_ws_disconnected ()
 
virtual void set_ws_authorizing ()
 
virtual void set_ws_connecting ()
 
virtual void set_ws_connected ()
 

Protected Attributes

CRGB leds_ [1] = {CRGB::Black}
 
std::unique_ptr< LEDBlinkerblinker_
 

Detailed Description

Consumes the networking and websocket states and delta counts and updates the device LED accordingly.

This is an abstract class that can be implemented for different types of LEDs.

Definition at line 40 of file system_status_led.h.

Constructor & Destructor Documentation

◆ BaseSystemStatusLed()

sensesp::BaseSystemStatusLed::BaseSystemStatusLed ( )
inline

Definition at line 58 of file system_status_led.h.

Here is the call graph for this function:

Member Function Documentation

◆ get_delta_tx_count_consumer()

ValueConsumer< int > & sensesp::BaseSystemStatusLed::get_delta_tx_count_consumer ( )

Definition at line 89 of file system_status_led.cpp.

◆ get_system_status_consumer()

ValueConsumer< SystemStatus > & sensesp::BaseSystemStatusLed::get_system_status_consumer ( )
inline

Definition at line 94 of file system_status_led.h.

◆ set_brightness()

virtual void sensesp::BaseSystemStatusLed::set_brightness ( uint8_t brightness)
protectedpure virtual

◆ set_wifi_disconnected()

void sensesp::BaseSystemStatusLed::set_wifi_disconnected ( )
protectedvirtual

Definition at line 72 of file system_status_led.cpp.

◆ set_wifi_no_ap()

void sensesp::BaseSystemStatusLed::set_wifi_no_ap ( )
protectedvirtual

Definition at line 62 of file system_status_led.cpp.

Here is the call graph for this function:

◆ set_ws_authorizing()

void sensesp::BaseSystemStatusLed::set_ws_authorizing ( )
protectedvirtual

Definition at line 79 of file system_status_led.cpp.

◆ set_ws_connected()

void sensesp::BaseSystemStatusLed::set_ws_connected ( )
protectedvirtual

Definition at line 85 of file system_status_led.cpp.

◆ set_ws_connecting()

void sensesp::BaseSystemStatusLed::set_ws_connecting ( )
protectedvirtual

Definition at line 82 of file system_status_led.cpp.

◆ set_ws_disconnected()

void sensesp::BaseSystemStatusLed::set_ws_disconnected ( )
protectedvirtual

Definition at line 76 of file system_status_led.cpp.

◆ show()

virtual void sensesp::BaseSystemStatusLed::show ( )
protectedpure virtual

Implemented in sensesp::RGBSystemStatusLed, and sensesp::SystemStatusLed.

Here is the caller graph for this function:

Member Data Documentation

◆ blinker_

std::unique_ptr<LEDBlinker> sensesp::BaseSystemStatusLed::blinker_
protected

Definition at line 44 of file system_status_led.h.

◆ leds_

CRGB sensesp::BaseSystemStatusLed::leds_[1] = {CRGB::Black}
protected

Definition at line 42 of file system_status_led.h.

◆ system_status_consumer_

LambdaConsumer<SystemStatus> sensesp::BaseSystemStatusLed::system_status_consumer_
Initial value:
{
[this](SystemStatus status) {
switch (status) {
this->set_wifi_no_ap();
break;
break;
break;
break;
break;
break;
default:
break;
}
}}

Definition at line 68 of file system_status_led.h.


The documentation for this class was generated from the following files: