Skip to content

Commit

Permalink
[Python] Modify rotatingId to a hexadecimal string (#27933)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng-yang authored Jul 14, 2023
1 parent 6cc26ff commit 3de75bb
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 3de75bb

Please sign in to comment.