Skip to content

Commit

Permalink
fixed the str print
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Jul 1, 2024
1 parent 7214f0e commit 460a4c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions identity/source/IotIdentityClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ namespace Aws
auto onSubscribePublish =
[handler](
Aws::Crt::Mqtt::MqttConnection &, const Aws::Crt::String &, const Aws::Crt::ByteBuf &payload) {
Aws::Crt::String objectStr(reinterpret_cast<char *>(payload.buffer), payload.len);
AWS_LOGF_DEBUG(
AWS_LS_MQTT_CLIENT,
"TODO: Check the received raw payload onSubscribeCreateKeysAndCertificate: %s",
payload.buffer);
Aws::Crt::String objectStr(reinterpret_cast<char *>(payload.buffer), payload.len);
objectStr.c_str());
Aws::Crt::JsonObject jsonObject(objectStr);
Aws::Iotidentity::CreateKeysAndCertificateResponse response(jsonObject);
AWS_LOGF_DEBUG(
Expand Down

0 comments on commit 460a4c9

Please sign in to comment.