semilimes mcu sdk 1.1.3
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
provisioning.h
1#ifndef _provisioning_
2#define _provisioning_
3
4#include "../defines.h"
5
7{
8private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12public:
13// Function: ~Provisioning
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~Provisioning()
19
20// Parameters:
21
22// Returns:
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: Provisioning.set
31
32// create the json needed to Register and Claim the device
33
34// Prototype:
35// void Provisioning::set(const char* devId, const char* provKey);
36
37// Parameters:
40
41// Returns:
43 void set(const char* devId, const char* provKey);
44
45// Function: Provisioning.get
46
47// return the json script
48
49// Prototype:
50// void Provisioning::get();
51
52// Parameters:
53
54// Returns:
56 char* get();
57
58// Function: Provisioning.getRegisterDeviceURL
59
60// provide the url to register the device
61
62// Prototype:
63// char* Provisioning::getRegisterDeviceURL();
64
65// Parameters:
66
67// Returns:
70
71// Function: Provisioning.getDeviceClaimStatusURL
72
73// provide the url to claim the device
74
75// Prototype:
76// char* Provisioning::getDeviceClaimStatusURL();
77
78// Parameters:
79
80// Returns:
83};
84
85#endif
Definition provisioning.h:7
char * getRegisterDeviceURL()
Definition provisioning.cpp:55
~Provisioning()
Definition provisioning.h:24
char * get()
Definition provisioning.cpp:38
char * getDeviceClaimStatusURL()
Definition provisioning.cpp:72
void set(const char *devId, const char *provKey)
Definition provisioning.cpp:17