class TimeSyncRequest

Defined at line 203 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/time/WeaveTime.h

codec for Time Sync Request message

Public Members

uint8_t mLikelihoodForResponse
bool mIsTimeCoordinator

Public Methods

void TimeSyncRequest ()

default constructor shall be used with Decode, as all members will be initialized through decoding

void Init (const uint8_t aLikelihood, const bool aIsTimeCoordinator)

initialize this object for encoding.

Parameters

aLikelihood [in] intended likelihood of response for this time sync request
aIsTimeCoordinator [in] true if the originator of this request is a Time Sync Coordinator

Returns

WEAVE_NO_ERROR on success

WEAVE_ERROR Encode (PacketBuffer *const aMsg)

encode time sync request into an PacketBuffer.

Parameters

aMsg [out] A pointer to the PacketBuffer

Returns

WEAVE_NO_ERROR on success

WEAVE_ERROR Decode (TimeSyncRequest *const aObject, PacketBuffer *const aMsg)

decode time sync request from an PacketBuffer.

Parameters

aObject [out] A pointer to the decoded object
aMsg [in] A pointer to the PacketBuffer

Returns

WEAVE_NO_ERROR on success

Enumerations

enum 
Name Value
kLikelihoodForResponse_Min 0
kLikelihoodForResponse_Max 31

minimum and maxiumum settings for the intended likelihood of response

for this time sync request.

Note that we cannot put check on kLikelihoodForResponse_Min in the Encode and Decode

routines because it's 0, so it's not safe to adjust it just at here

Defined at line 245 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/time/WeaveTime.h

enum 
Name Value
kPayloadLen 2

Time Sync Request Payload length

Defined at line 252 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/time/WeaveTime.h