Declared in ReceiverMessageWriterModel
Declaration
bool ReadClosestMessage(
Message msg,
double time,
string key
);
Description
Reads the message data that is associated with the closest value to some time that is passed in. This will look into the messages that are received and will find the closest time to the time that is passed in. This will then update the data in the message.
Parameters
Name | Description |
---|---|
msg | The message to write the data into |
time | [s] The time to fetch the closest value from, which is in transmission time |
key | The key to fetch the data from |