@@ -92,7 +92,7 @@ bool AgentsConfiguratorManager::end(uint8_t id) {
92
92
#endif
93
93
_selectedAgent = nullptr ;
94
94
_statusRequest.reset ();
95
- _initStatusMsg = MessageTypeCodes ::NONE;
95
+ _initStatusMsg = StatusMessage ::NONE;
96
96
_state = AgentsConfiguratorManagerStates::END;
97
97
}
98
98
@@ -116,12 +116,12 @@ bool AgentsConfiguratorManager::sendMsg(ProvisioningOutputMessage &msg) {
116
116
_statusRequest.reset ();
117
117
}
118
118
_initStatusMsg = msg.m .status ;
119
- } else if (msg.m .status == MessageTypeCodes ::CONNECTED) {
119
+ } else if (msg.m .status == StatusMessage ::CONNECTED) {
120
120
if (_statusRequest.pending && _statusRequest.key == RequestType::CONNECT) {
121
121
_statusRequest.reset ();
122
122
}
123
123
_initStatusMsg = msg.m .status ;
124
- } else if (msg.m .status == MessageTypeCodes ::RESET_COMPLETED) {
124
+ } else if (msg.m .status == StatusMessage ::RESET_COMPLETED) {
125
125
if (_statusRequest.pending && _statusRequest.key == RequestType::RESET) {
126
126
_statusRequest.reset ();
127
127
}
@@ -211,12 +211,12 @@ AgentsConfiguratorManagerStates AgentsConfiguratorManager::handleInit() {
211
211
212
212
AgentsConfiguratorManagerStates AgentsConfiguratorManager::handleSendInitialStatus () {
213
213
AgentsConfiguratorManagerStates nextState = _state;
214
- if (_initStatusMsg != MessageTypeCodes ::NONE) {
214
+ if (_initStatusMsg != StatusMessage ::NONE) {
215
215
if (!sendStatus (_initStatusMsg)) {
216
216
DEBUG_WARNING (" AgentsConfiguratorManager::%s failed to send initial status" , __FUNCTION__);
217
217
return nextState;
218
218
}
219
- _initStatusMsg = MessageTypeCodes ::NONE;
219
+ _initStatusMsg = StatusMessage ::NONE;
220
220
}
221
221
nextState = AgentsConfiguratorManagerStates::SEND_NETWORK_OPTIONS;
222
222
return nextState;
@@ -295,7 +295,7 @@ void AgentsConfiguratorManager::handleReceivedData() {
295
295
void AgentsConfiguratorManager::handleConnectCommand () {
296
296
if (_statusRequest.pending ) {
297
297
DEBUG_DEBUG (" AgentsConfiguratorManager::%s received a Connect request while executing another request" , __FUNCTION__);
298
- sendStatus (MessageTypeCodes ::OTHER_REQUEST_IN_EXECUTION);
298
+ sendStatus (StatusMessage ::OTHER_REQUEST_IN_EXECUTION);
299
299
return ;
300
300
}
301
301
@@ -307,7 +307,7 @@ void AgentsConfiguratorManager::handleConnectCommand() {
307
307
void AgentsConfiguratorManager::handleUpdateOptCommand () {
308
308
if (_statusRequest.pending ) {
309
309
DEBUG_DEBUG (" AgentsConfiguratorManager::%s received a UpdateConnectivityOptions request while executing another request" , __FUNCTION__);
310
- sendStatus (MessageTypeCodes ::OTHER_REQUEST_IN_EXECUTION);
310
+ sendStatus (StatusMessage ::OTHER_REQUEST_IN_EXECUTION);
311
311
return ;
312
312
}
313
313
@@ -319,7 +319,7 @@ void AgentsConfiguratorManager::handleUpdateOptCommand() {
319
319
void AgentsConfiguratorManager::handleGetIDCommand () {
320
320
if (_statusRequest.pending ) {
321
321
DEBUG_DEBUG (" AgentsConfiguratorManager::%s received a GetUnique request while executing another request" , __FUNCTION__);
322
- sendStatus (MessageTypeCodes ::OTHER_REQUEST_IN_EXECUTION);
322
+ sendStatus (StatusMessage ::OTHER_REQUEST_IN_EXECUTION);
323
323
return ;
324
324
}
325
325
@@ -331,7 +331,7 @@ void AgentsConfiguratorManager::handleGetIDCommand() {
331
331
void AgentsConfiguratorManager::handleGetBleMacAddressCommand () {
332
332
if (_statusRequest.pending ) {
333
333
DEBUG_DEBUG (" AgentsConfiguratorManager::%s received a GetBleMacAddress request while executing another request" , __FUNCTION__);
334
- sendStatus (MessageTypeCodes ::OTHER_REQUEST_IN_EXECUTION);
334
+ sendStatus (StatusMessage ::OTHER_REQUEST_IN_EXECUTION);
335
335
return ;
336
336
}
337
337
@@ -361,7 +361,7 @@ void AgentsConfiguratorManager::handleGetBleMacAddressCommand() {
361
361
void AgentsConfiguratorManager::handleResetCommand () {
362
362
if (_statusRequest.pending ) {
363
363
DEBUG_DEBUG (" AgentsConfiguratorManager::%s received a GetUnique request while executing another request" , __FUNCTION__);
364
- sendStatus (MessageTypeCodes ::OTHER_REQUEST_IN_EXECUTION);
364
+ sendStatus (StatusMessage ::OTHER_REQUEST_IN_EXECUTION);
365
365
return ;
366
366
}
367
367
@@ -410,7 +410,7 @@ void AgentsConfiguratorManager::callHandler(RequestType type) {
410
410
411
411
DEBUG_WARNING (" AgentsConfiguratorManager::%s %s request received, but handler function is not provided" , __FUNCTION__, err.c_str ());
412
412
_statusRequest.reset ();
413
- sendStatus (MessageTypeCodes ::INVALID_REQUEST);
413
+ sendStatus (StatusMessage ::INVALID_REQUEST);
414
414
}
415
415
}
416
416
0 commit comments