ot::NetworkData::Leader::FindCommissioningSessionId() const method
Finds and reads the Commissioning Session ID in Commissioning Data TLV.
Arguments
aSessionId
A reference to return the read session ID.
Return value
kErrorNone Successfully read the session ID, @p aSessionId is updated. kErrorNotFound Did not find Session ID sub-TLV. kErrorParse Failed to parse Commissioning Data TLV (invalid format).