Skip to content

Commit

Permalink
parse dps disable response (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
rido-min authored Dec 12, 2022
1 parent d2b3a83 commit 80eb46c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public MqttDpsClient(IMqttClient c, string mid)
{
tcs.SetResult(dpsRes);
}

if (dpsRes != null && dpsRes.Status == "disabled")
{
tcs.SetException(new ApplicationException("Device ID disabled in DPS"));
}
}
}
};
Expand Down

0 comments on commit 80eb46c

Please sign in to comment.