Table of Contents

Method GetMessage

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

GetMessage(MessageType)

Creates a new Harp message with the specified payload value.

public HarpMessage GetMessage(MessageType messageType)

Parameters

messageType MessageType

Specifies 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 double

The timestamp of the message payload, in seconds.

messageType MessageType

Specifies the type of the created message.

Returns

HarpMessage

A new timestamped message containing the value of the payload property.