diff --git a/src/protocols/Protocols.cpp b/src/protocols/Protocols.cpp index f840bb097249a9..4428d8c8b1540b 100644 --- a/src/protocols/Protocols.cpp +++ b/src/protocols/Protocols.cpp @@ -86,27 +86,27 @@ const char * GetMessageTypeName(Id protocolId, uint8_t msgType) switch (protocolId.GetProtocolId()) { case InteractionModel::Id.GetProtocolId(): - lookupTable = MessageTypeTraits::GetTypeToNameTable()->begin(); + lookupTable = MessageTypeTraits::GetTypeToNameTable()->data(); lookupTableSize = MessageTypeTraits::GetTypeToNameTable()->size(); break; case SecureChannel::Id.GetProtocolId(): - lookupTable = MessageTypeTraits::GetTypeToNameTable()->begin(); + lookupTable = MessageTypeTraits::GetTypeToNameTable()->data(); lookupTableSize = MessageTypeTraits::GetTypeToNameTable()->size(); break; case BDX::Id.GetProtocolId(): - lookupTable = MessageTypeTraits::GetTypeToNameTable()->begin(); + lookupTable = MessageTypeTraits::GetTypeToNameTable()->data(); lookupTableSize = MessageTypeTraits::GetTypeToNameTable()->size(); break; case Echo::Id.GetProtocolId(): - lookupTable = MessageTypeTraits::GetTypeToNameTable()->begin(); + lookupTable = MessageTypeTraits::GetTypeToNameTable()->data(); lookupTableSize = MessageTypeTraits::GetTypeToNameTable()->size(); break; case UserDirectedCommissioning::Id.GetProtocolId(): - lookupTable = MessageTypeTraits::GetTypeToNameTable()->begin(); + lookupTable = MessageTypeTraits::GetTypeToNameTable()->data(); lookupTableSize = MessageTypeTraits::GetTypeToNameTable()->size(); break;