Method GetMessage
GetMessage(MessageType)
Creates a new Harp message with the specified payload value.
public HarpMessage GetMessage(MessageType messageType)
Parameters
messageType
MessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new message containing the value of the payload property.
GetMessage(double, MessageType)
Creates a new timestamped Harp message with the specified payload value.
public HarpMessage GetMessage(double timestamp, MessageType messageType)
Parameters
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new timestamped message containing the value of the payload property.