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