File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ void ClaimingHandlerClass::getIdReqHandler() {
70
70
return ;
71
71
}
72
72
73
+ byte _uhwidBytes[32 ];
74
+ hexStringToBytes (*_uhwid, _uhwidBytes, _uhwid->length ());
75
+ // Send UHWID
76
+ ProvisioningOutputMessage idMsg = {MessageOutputType::UHWID};
77
+ idMsg.m .uhwid = _uhwidBytes;
78
+ _agentManager->sendMsg (idMsg);
79
+
73
80
String token = CreateJWTToken (*_uhwid, _ts, _secureElement);
74
81
Serial.print (" Token: " );// TODO REMOVE
75
82
Serial.println (token);
@@ -78,12 +85,7 @@ void ClaimingHandlerClass::getIdReqHandler() {
78
85
sendStatus (StatusMessage::ERROR);
79
86
return ;
80
87
}
81
- byte _uhwidBytes[32 ];
82
- hexStringToBytes (*_uhwid, _uhwidBytes, _uhwid->length ());
83
- // Send UHWID
84
- ProvisioningOutputMessage idMsg = {MessageOutputType::UHWID};
85
- idMsg.m .uhwid = _uhwidBytes;
86
- _agentManager->sendMsg (idMsg);
88
+
87
89
// Send JWT
88
90
ProvisioningOutputMessage jwtMsg = {MessageOutputType::JWT};
89
91
jwtMsg.m .jwt = token.c_str ();
@@ -125,4 +127,4 @@ void ClaimingHandlerClass::resetStoredCredRequestCb() {
125
127
bool ClaimingHandlerClass::sendStatus (StatusMessage msg) {
126
128
ProvisioningOutputMessage statusMsg = { MessageOutputType::STATUS, { msg } };
127
129
return _agentManager->sendMsg (statusMsg);
128
- }
130
+ }
You can’t perform that action at this time.
0 commit comments