ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
ApCredentials.hpp
Go to the documentation of this file.
1#pragma once
2/*
3* ApCredentials.hpp - Output Management class
4*
5* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver
6* Copyright (c) 2021, 2025 Shelby Merrick
7* http://www.forkineye.com
8*
9* This program is provided free for you to use in any way that you wish,
10* subject to the laws and regulations where you are using it. Due diligence
11* is strongly suggested before using this code. Please give credit where due.
12*
13* The Author makes no warranty of any kind, express or implied, with regard
14* to this program or the documentation contained in this document. The
15* Author shall not be liable in any event for incidental or consequential
16* damages in connection with, or arising out of, the furnishing, performance
17* or use of these programs.
18*
19*/
20
21#include "ESPixelStick.h"
22
24{
25public:
27 virtual ~c_ApCredentials ();
28
29 void GetConfig (JsonObject & json);
30 bool SetConfig (JsonObject & json);
31
33 {
34 char ssid[65];
35 char passphrase[65];
36 };
37 bool GetCurrentCredentials (ApCredentials & OutValue);
39 bool GetNextCredentials ();
40 void GetDriverName (String & Name) { Name = F("AP Credentials"); }
41
42private:
43# define MAX_NUM_CREDENTIALS 4
46
47}; // c_ApCredentials
#define MAX_NUM_CREDENTIALS
Definition ApCredentials.hpp:43
Definition ApCredentials.hpp:24
void GetConfig(JsonObject &json)
Definition ApCredentials.cpp:45
void GetDriverName(String &Name)
Definition ApCredentials.hpp:40
bool GetCurrentCredentials(ApCredentials &OutValue)
Definition ApCredentials.cpp:137
bool GetNextCredentials()
Definition ApCredentials.cpp:161
uint ApCredentialsIterator
Definition ApCredentials.hpp:45
ApCredentials _ApCredentials[MAX_NUM_CREDENTIALS]
Definition ApCredentials.hpp:44
void ResetCurrentCredentials()
Definition ApCredentials.cpp:173
virtual ~c_ApCredentials()
< deallocate any resources and put the output channels into a safe state
Definition ApCredentials.cpp:36
bool SetConfig(JsonObject &json)
Definition ApCredentials.cpp:67
c_ApCredentials()
< Start up the driver and put it into a safe mode
Definition ApCredentials.cpp:24
Definition ApCredentials.hpp:33
char ssid[65]
Definition ApCredentials.hpp:34
char passphrase[65]
Definition ApCredentials.hpp:35