diff --git a/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp b/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp index d64753f9613b3e..06d999d0bf20b3 100644 --- a/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp +++ b/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp @@ -182,7 +182,7 @@ std::vector CastingStore::ReadAll() continue; } - if (castingPlayerContainerTagNum == kCastingCommissionerPasscodeTag) + if (castingPlayerContainerTagNum == kCastingPlayerCommissionerPasscodeTag) { err = reader.Get(attributes.commissionerPasscode); VerifyOrReturnValue(err == CHIP_NO_ERROR, std::vector(), @@ -481,7 +481,7 @@ CHIP_ERROR CastingStore::WriteAll(std::vector castingPlayer ReturnErrorOnFailure(tlvWriter.Put(chip::TLV::ContextTag(kCastingPlayerProductIdTag), castingPlayer.GetProductId())); ReturnErrorOnFailure(tlvWriter.Put(chip::TLV::ContextTag(kCastingPlayerDeviceTypeIdTag), castingPlayer.GetDeviceType())); ReturnErrorOnFailure( - tlvWriter.Put(chip::TLV::ContextTag(kCastingCommissionerPasscodeTag), castingPlayer.GetCommissionerPasscode())); + tlvWriter.Put(chip::TLV::ContextTag(kCastingPlayerCommissionerPasscodeTag), castingPlayer.GetCommissionerPasscode())); ReturnErrorOnFailure(tlvWriter.Put(chip::TLV::ContextTag(kCastingPlayerPortTag), castingPlayer.GetPort())); ReturnErrorOnFailure(tlvWriter.PutBytes(chip::TLV::ContextTag(kCastingPlayerInstanceNameTag), (const uint8_t *) castingPlayer.GetInstanceName(), diff --git a/examples/tv-casting-app/tv-casting-common/support/CastingStore.h b/examples/tv-casting-app/tv-casting-common/support/CastingStore.h index 3710ca15e23ea8..64c7e4a574366a 100644 --- a/examples/tv-casting-app/tv-casting-common/support/CastingStore.h +++ b/examples/tv-casting-app/tv-casting-common/support/CastingStore.h @@ -83,7 +83,7 @@ class CastingStore : public chip::FabricTable::Delegate kCastingPlayerPortTag, kCastingPlayerInstanceNameTag, kCastingPlayerDeviceNameTag, - kCastingCommissionerPasscodeTag, + kCastingPlayerCommissionerPasscodeTag, kCastingPlayerHostNameTag, kCastingPlayerEndpointsContainerTag,