ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
c_WebMgr Class Reference

#include <WebMgr.hpp>

Collaboration diagram for c_WebMgr:

Public Member Functions

 c_WebMgr ()
 < Start up the driver and put it into a safe mode
 
virtual ~c_WebMgr ()
 < deallocate any resources and put the output channels into a safe state
 
void Begin (config_t *NewConfig)
 set up the operating environment based on the current config (or defaults)
 
void ValidateConfig (config_t *NewConfig)
 
void Process ()
 
void onAlexaMessage (EspalexaDevice *pDevice)
 
void RegisterAlexaCallback (DeviceCallbackFunction cb)
 
bool IsAlexaCallbackValid ()
 
void FirmwareUpload (AsyncWebServerRequest *request, String filename, uint32_t index, uint8_t *data, uint32_t len, bool final)
 
void NetworkStateChanged (bool NewNetworkState)
 
void GetDriverName (String &Name)
 
void CreateAdminInfoFile ()
 
void GetFseqFileListHandler (AsyncWebServerRequest *request)
 

Private Types

using WebJsonDocument = JsonDocument
 

Private Member Functions

void init ()
 
void processCmdGet (JsonObject &jsonCmd)
 
bool processCmdSet (JsonObject &jsonCmd)
 
void processCmdOpt (JsonObject &jsonCmd)
 
void processCmdDelete (JsonObject &jsonCmd)
 
void processCmdSetTime (JsonObject &jsonCmd)
 
void GetConfiguration ()
 
void GetOptions ()
 
void ProcessXJRequest (AsyncWebServerRequest *client)
 
void ProcessSetTimeRequest (time_t DateTime)
 
void GetDeviceOptions ()
 
void GetInputOptions ()
 
void GetOutputOptions ()
 
size_t GetFseqFileListChunk (uint8_t *buffer, size_t maxlen, size_t index)
 

Private Attributes

EFUpdate efupdate
 
DeviceCallbackFunction pAlexaCallback = nullptr
 
EspalexaDevice * pAlexaDevice = nullptr
 
bool HasBeenInitialized = false
 
WebJsonDocumentWebJsonDoc = nullptr
 
c_FileMgr::FileId FileHandle = c_FileMgr::INVALID_FILE_HANDLE
 
size_t TotalFileSizeToTransfer = 0
 
size_t NumberOfBytesTransfered = 0
 

Member Typedef Documentation

◆ WebJsonDocument

using c_WebMgr::WebJsonDocument = JsonDocument
private

Constructor & Destructor Documentation

◆ c_WebMgr()

c_WebMgr::c_WebMgr ( )

< Start up the driver and put it into a safe mode

◆ ~c_WebMgr()

c_WebMgr::~c_WebMgr ( )
virtual

< deallocate any resources and put the output channels into a safe state

Member Function Documentation

◆ Begin()

void c_WebMgr::Begin ( config_t * NewConfig)

set up the operating environment based on the current config (or defaults)

< Start the module

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateAdminInfoFile()

void c_WebMgr::CreateAdminInfoFile ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FirmwareUpload()

void c_WebMgr::FirmwareUpload ( AsyncWebServerRequest * request,
String filename,
uint32_t index,
uint8_t * data,
uint32_t len,
bool final )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfiguration()

void c_WebMgr::GetConfiguration ( )
private

◆ GetDeviceOptions()

void c_WebMgr::GetDeviceOptions ( )
private

◆ GetDriverName()

void c_WebMgr::GetDriverName ( String & Name)
inline

◆ GetFseqFileListChunk()

size_t c_WebMgr::GetFseqFileListChunk ( uint8_t * buffer,
size_t maxlen,
size_t index )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFseqFileListHandler()

void c_WebMgr::GetFseqFileListHandler ( AsyncWebServerRequest * request)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetInputOptions()

void c_WebMgr::GetInputOptions ( )
private

◆ GetOptions()

void c_WebMgr::GetOptions ( )
private

◆ GetOutputOptions()

void c_WebMgr::GetOutputOptions ( )
private

◆ init()

void c_WebMgr::init ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsAlexaCallbackValid()

bool c_WebMgr::IsAlexaCallbackValid ( )
inline
Here is the caller graph for this function:

◆ NetworkStateChanged()

void c_WebMgr::NetworkStateChanged ( bool NewNetworkState)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAlexaMessage()

void c_WebMgr::onAlexaMessage ( EspalexaDevice * pDevice)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Process()

void c_WebMgr::Process ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processCmdDelete()

void c_WebMgr::processCmdDelete ( JsonObject & jsonCmd)
private

◆ processCmdGet()

void c_WebMgr::processCmdGet ( JsonObject & jsonCmd)
private

◆ processCmdOpt()

void c_WebMgr::processCmdOpt ( JsonObject & jsonCmd)
private

◆ processCmdSet()

bool c_WebMgr::processCmdSet ( JsonObject & jsonCmd)
private

◆ processCmdSetTime()

void c_WebMgr::processCmdSetTime ( JsonObject & jsonCmd)
private

◆ ProcessSetTimeRequest()

void c_WebMgr::ProcessSetTimeRequest ( time_t DateTime)
private
Here is the caller graph for this function:

◆ ProcessXJRequest()

void c_WebMgr::ProcessXJRequest ( AsyncWebServerRequest * client)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegisterAlexaCallback()

void c_WebMgr::RegisterAlexaCallback ( DeviceCallbackFunction cb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ValidateConfig()

void c_WebMgr::ValidateConfig ( config_t * NewConfig)

Member Data Documentation

◆ efupdate

EFUpdate c_WebMgr::efupdate
private

◆ FileHandle

c_FileMgr::FileId c_WebMgr::FileHandle = c_FileMgr::INVALID_FILE_HANDLE
private

◆ HasBeenInitialized

bool c_WebMgr::HasBeenInitialized = false
private

◆ NumberOfBytesTransfered

size_t c_WebMgr::NumberOfBytesTransfered = 0
private

◆ pAlexaCallback

DeviceCallbackFunction c_WebMgr::pAlexaCallback = nullptr
private

◆ pAlexaDevice

EspalexaDevice* c_WebMgr::pAlexaDevice = nullptr
private

◆ TotalFileSizeToTransfer

size_t c_WebMgr::TotalFileSizeToTransfer = 0
private

◆ WebJsonDoc

WebJsonDocument* c_WebMgr::WebJsonDoc = nullptr
private

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