semilimes mcu sdk 0.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 SmeJson json_data;
10 char** pjson;
11
12public:
13// Function: Provisioning
14
15// acquire the keys needed to provision the device
16
17// Prototype:
18// void Provisioning(char* json);
19
20// Parameters:
22
23// Returns:
25 Provisioning(char* json)
26 {
27 pjson = &json;
28 json_data.initJson(*pjson);
29 }
30
31// Function: Provisioning.setObj
32
33// acquire the keys needed to provision the device
34
35// Prototype:
36// void Provisioning::setObj(char* devId, char* provKey);
37
38// Parameters:
41
42// Returns:
44 void setObj(char* devId, char* provKey);
45
46// Function: Provisioning.getRegisterDeviceURL
47
48// provide the url to register the device
49
50// Prototype:
51// char* Provisioning::getRegisterDeviceURL();
52
53// Parameters:
54
55// Returns:
58
59// Function: Provisioning.getDeviceClaimStatusURL
60
61// provide the url to claim the device
62
63// Prototype:
64// char* Provisioning::getDeviceClaimStatusURL();
65
66// Parameters:
67
68// Returns:
71};
72
73#endif
Definition provisioning.h:7
char * getRegisterDeviceURL()
Definition provisioning.cpp:36
char * getDeviceClaimStatusURL()
Definition provisioning.cpp:53
void setObj(char *devId, char *provKey)
Definition provisioning.cpp:17
Provisioning(char *json)
Definition provisioning.h:25