| semilimes mcu sdk 1.1.2 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
provisioning.h
1#ifndef _provisioning_
2#define _provisioning_
3
4#include "../defines.h"
5
6 class Provisioning
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
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:
24 ~Provisioning()
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:
69 char* getRegisterDeviceURL();
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:
82 char* getDeviceClaimStatusURL();
83};
84
85#endif
Provisioning
Definition provisioning.h:7
Provisioning::getRegisterDeviceURL
char * getRegisterDeviceURL()
Definition provisioning.cpp:55
Provisioning::~Provisioning
~Provisioning()
Definition provisioning.h:24
Provisioning::get
char * get()
Definition provisioning.cpp:38
Provisioning::getDeviceClaimStatusURL
char * getDeviceClaimStatusURL()
Definition provisioning.cpp:72
Provisioning::set
void set(const char *devId, const char *provKey)
Definition provisioning.cpp:17