semilimes mcu sdk 1.1.1
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 #define headerSize 36
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~Provisioning
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~Provisioning()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: Provisioning.set
32
33// create the json needed to Register and Claim the device
34
35// Prototype:
36// void Provisioning::set(char* devId, char* provKey);
37
38// Parameters:
41
42// Returns:
44 void set(char* devId, char* provKey);
45
46// Function: Provisioning.get
47
48// return the json script
49
50// Prototype:
51// void Provisioning::get();
52
53// Parameters:
54
55// Returns:
57 char* get();
58
59// Function: Provisioning.getRegisterDeviceURL
60
61// provide the url to register the device
62
63// Prototype:
64// char* Provisioning::getRegisterDeviceURL();
65
66// Parameters:
67
68// Returns:
71
72// Function: Provisioning.getDeviceClaimStatusURL
73
74// provide the url to claim the device
75
76// Prototype:
77// char* Provisioning::getDeviceClaimStatusURL();
78
79// Parameters:
80
81// Returns:
84};
85
86#endif
Definition provisioning.h:7
char * getRegisterDeviceURL()
Definition provisioning.cpp:55
void set(char *devId, char *provKey)
Definition provisioning.cpp:17
~Provisioning()
Definition provisioning.h:25
char * get()
Definition provisioning.cpp:38
char * getDeviceClaimStatusURL()
Definition provisioning.cpp:72