Skip to content

Commit

Permalink
[Python] Modify rotatingId to a hexadecimal string (project-chip#27933)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng-yang authored and erwinpan1 committed Jul 21, 2023
1 parent 060f447 commit 23b4968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controller/python/ChipDeviceController-Discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ void pychip_DeviceController_IterateDiscoveredCommissionableNodes(Controller::De
}
if (dnsSdInfo->commissionData.rotatingIdLen > 0)
{
jsonVal["rotatingId"] = std::string(reinterpret_cast<const char *>(dnsSdInfo->commissionData.rotatingId),
dnsSdInfo->commissionData.rotatingIdLen);
jsonVal["rotatingId"] = rotatingId;
}

{
Expand Down

0 comments on commit 23b4968

Please sign in to comment.