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