| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
dc_tunnel_reference.h
1#ifndef _dc_tunnel_reference_
2#define _dc_tunnel_reference_
3
4#include "../defines.h"
5
6 class DcTunnelReference
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~DcTunnelReference
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~DcTunnelReference()
19
20// Parameters:
21
22// Returns:
24 ~DcTunnelReference()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: DcTunnelReference.set
31
32// A message referencing an existing Tunnel
33
34// Prototype:
35// void DcTunnelReference::set(const char* tunnelId);
36
37// Parameters:
39
40// Returns:
42 void set(const char* tunnelId);
43
44// Function: DcTunnelReference.get
45
46// return the json script
47
48// Prototype:
49// void DcTunnelReference::get();
50
51// Parameters:
52
53// Returns:
55 char* get();
56};
57
58#endif
DcTunnelReference
Definition dc_tunnel_reference.h:7
DcTunnelReference::~DcTunnelReference
~DcTunnelReference()
Definition dc_tunnel_reference.h:24
DcTunnelReference::set
void set(const char *tunnelId)
Definition dc_tunnel_reference.cpp:16
DcTunnelReference::get
char * get()
Definition dc_tunnel_reference.cpp:38