semilimes mcu sdk
1.0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_switch.h
1
#ifndef _fc_switch_
2
#define _fc_switch_
3
4
#include "../defines.h"
5
6
class
FcSwitch
7
{
8
private
:
9
#define headerSize 63
10
SmeJson json_data;
11
char
* json =
nullptr
;
12
13
public
:
14
// Function: ~FcSwitch
15
16
// distructor of the class, frees up the memory occupied by the array/s
17
18
// Prototype:
19
// ~FcSwitch()
20
21
// Parameters:
22
23
// Returns:
25
~FcSwitch
()
26
{
27
delete
[] json;
28
json =
nullptr
;
29
}
30
31
// Function: FcSwitch.set
32
33
// An on/off switch
34
35
// Prototype:
36
// void FcSwitch::set(char* refname,char* title,bool value);
37
38
// Parameters:
42
43
// Returns:
45
46
void
set
(
char
* refname,
char
* title,
bool
value);
47
48
// Function: FcSwitch.get
49
50
// return the json script
51
52
// Prototype:
53
// void FcSwitch::get();
54
55
// Parameters:
56
57
// Returns:
59
char
*
get
();
60
};
61
62
#endif
FcSwitch
Definition
fc_switch.h:7
FcSwitch::~FcSwitch
~FcSwitch()
Definition
fc_switch.h:25
FcSwitch::set
void set(char *refname, char *title, bool value)
Definition
fc_switch.cpp:18
FcSwitch::get
char * get()
Definition
fc_switch.cpp:42
github
semilimes_mcu_sdk
src
components
fc_switch.h
Generated by
1.12.0