semilimes mcu sdk 1.1.3 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
6 class DcChReference
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~DcChReference
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~DcChReference()
19
20// Parameters:
21
22// Returns:
24 ~DcChReference()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: DcChReference.set
31
32// A message referencing an existing Channel
33
34// Prototype:
35// void DcChReference::set(const char* channelId);
36
37// Parameters:
39
40// Returns:
42
43 void set(const char* channelId);
44
45// Function: DcChReference.get
46
47// return the json script
48
49// Prototype:
50// void DcChReference::get();
51
52// Parameters:
53
54// Returns:
56 char* get();
57};
58
59#endif
DcChReference
Definition dc_ch_reference.h:7
DcChReference::set
void set(const char *channelId)
Definition dc_ch_reference.cpp:16
DcChReference::~DcChReference
~DcChReference()
Definition dc_ch_reference.h:24
DcChReference::get
char * get()
Definition dc_ch_reference.cpp:38