| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
bucket_open.h
1#ifndef _bucket_open_
2#define _bucket_open_
3
4#include "../defines.h"
5
6 class BucketOpen
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13
14// Function: ~BucketOpen
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~BucketOpen()
20
21// Parameters:
22
23// Returns:
25 ~BucketOpen()
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: BucketOpen.set
32
33// This endpoint let the user access the bucket content by its bucketId.
34
35// Prototype:
37
38// Parameters:
39// bucketId - is the unique Id to reference an existing bucket
40
41// Returns:
43 void set(const char* bucketId);
44
45// Function: BucketOpen.getEPurl
46
47// provides the full url for this endpoint
48
49// Prototype:
51
52// Parameters:
53
54// Returns:
56
57 char* getEPurl();
58
59// Function: BucketOpen.getWSEPurl
60
61// provides this endpoint
62
63// Prototype:
65
66// Parameters:
67
68// Returns:
70
71 char* getWSEPurl();
72
73// Function: BucketOpen.get
74
75// return the json script
76
77// Prototype:
78// void BucketOpen::get();
79
80// Parameters:
81
82// Returns:
84 char* get();
85};
86
87#endif
BucketOpen
Definition bucket_open.h:7
BucketOpen::getWSEPurl
char * getWSEPurl()
Definition bucket_open.cpp:54
BucketOpen::getEPurl
char * getEPurl()
Definition bucket_open.cpp:37
BucketOpen::~BucketOpen
~BucketOpen()
Definition bucket_open.h:25
BucketOpen::get
char * get()
Definition bucket_open.cpp:71
BucketOpen::set
void set(const char *bucketId)
Definition bucket_open.cpp:16