Method GetMessage
GetMessage(MessageType)
Creates a new Harp message with the specified payload value.
public HarpMessage GetMessage(MessageType messageType)
Parameters
messageTypeMessageTypeSpecifies 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
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new timestamped message containing the value of the payload property.