semilimes mcu sdk
1.1.1
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
#define headerSize 15
10
SmeJson json_data;
11
char
* json =
nullptr
;
12
13
public
:
14
15
// Function: ~BucketOpen
16
17
// distructor of the class, frees up the memory occupied by the array/s
18
19
// Prototype:
20
// ~BucketOpen()
21
22
// Parameters:
23
24
// Returns:
26
~BucketOpen
()
27
{
28
delete
[] json;
29
json =
nullptr
;
30
}
31
32
// Function: BucketOpen.set
33
34
// This endpoint let the user access the bucket content by its bucketId.
35
36
// Prototype:
38
39
// Parameters:
40
// bucketId - is the unique Id to reference an existing bucket
41
42
// Returns:
44
void
set
(
char
* bucketId);
45
46
// Function: BucketOpen.getEPurl
47
48
// provides the full url for this endpoint
49
50
// Prototype:
52
53
// Parameters:
54
55
// Returns:
57
58
char
*
getEPurl
();
59
60
// Function: BucketOpen.get
61
62
// return the json script
63
64
// Prototype:
65
// void BucketOpen::get();
66
67
// Parameters:
68
69
// Returns:
71
char
*
get
();
72
};
73
74
#endif
BucketOpen
Definition
bucket_open.h:7
BucketOpen::set
void set(char *bucketId)
Definition
bucket_open.cpp:16
BucketOpen::getEPurl
char * getEPurl()
Definition
bucket_open.cpp:37
BucketOpen::~BucketOpen
~BucketOpen()
Definition
bucket_open.h:26
BucketOpen::get
char * get()
Definition
bucket_open.cpp:54
github
semilimes_mcu_sdk
src
communication
bucket_open.h
Generated by
1.12.0