WiFi Connect  Version 1.0
WiFi connection manager for ESP32 and ESP8266 including OLED support
WiFiConnectParam.h
Go to the documentation of this file.
1 
31 #ifndef WIFI_CONNECT_PARAM
32 #define WIFI_CONNECT_PARAM
33 
34 #ifndef WiFiConnect_MAX_PARAMS
35 #define WiFiConnect_MAX_PARAMS 10
36 #endif
37 
38 #include <Arduino.h>
39 /**************************************************************************/
43 /**************************************************************************/
45  public:
46  WiFiConnectParam(const char *custom);
47  WiFiConnectParam(const char *id, const char *placeholder, const char *defaultValue, int length);
48  WiFiConnectParam(const char *id, const char *placeholder, const char *defaultValue, int length, const char *custom);
49 
50  const char *getID();
51  const char *getValue();
52  const char *getPlaceholder();
53  int getValueLength();
54  const char *getCustomHTML();
55  void setValue(const char *newValue);
56  private:
57  const char *_id;
58  const char *_placeholder;
59  char *_value;
60  int _length;
61  const char *_customHTML;
62 
63  void init(const char *id, const char *placeholder, const char *defaultValue, int length, const char *custom);
64 
65  friend class WiFiConnect;
66 
67 };
68 #endif
int getValueLength()
Function to get the maximum length allowed for the value of the item.
Definition: WiFiConnectParam.cpp:155
void setValue(const char *newValue)
Method to change the current value of the item.
Definition: WiFiConnectParam.cpp:111
const char * getPlaceholder()
Function to get the current placeholder text of the item.
Definition: WiFiConnectParam.cpp:146
Class that stores a custom parameter.
Definition: WiFiConnectParam.h:44
const char * getValue()
Function to get the current value of the item.
Definition: WiFiConnectParam.cpp:128
const char * getID()
Function to get the current id of the item.
Definition: WiFiConnectParam.cpp:137
Class that helps to connect to WiFi networks, that also has captive portal web interface for configur...
Definition: WiFiConnect.h:64
WiFiConnectParam(const char *custom)
Class object initialiser.
Definition: WiFiConnectParam.cpp:39
const char * getCustomHTML()
Function to get the current custom html markup of the item.
Definition: WiFiConnectParam.cpp:164