-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQCredentials.h
More file actions
executable file
·35 lines (28 loc) · 1.16 KB
/
QCredentials.h
File metadata and controls
executable file
·35 lines (28 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
///////////////////////////////////////////////////////////////////////////////
// :mode=c:
/* QCredentials.h */
///////////////////////////////////////////////////////////////////////////////
#ifndef QCredentials_h
#define QCredentials_h
/**************************************************************************************/
/* QCredentials - Manages login credentials needed for devices, e.g. wifi, mqtt.
*/
/**************************************************************************************/
class QCredentials
{
///////////////////////////////////////////////////////////
// Data
///////////////////////////////////////////////////////////
protected:
static const int _MaxUserName= 15;
char _pLogin[_MaxUserName+1];
char _pPassword[_MaxUserName+1];
///////////////////////////////////////////////////////////
// Methods
///////////////////////////////////////////////////////////
public:
QCredentials(const char * pLogin, const char * pPassword);
protected:
void Init();
}; // QCredentials
#endif