Method FromByte
FromByte(int, MessageType, byte)
Returns a HarpMessage with the specified address, message type, and a single value 8-bit unsigned integer payload.
public static HarpMessage FromByte(int address, MessageType messageType, byte value)
Parameters
address
intThe address of the register to which the Harp message refers to.
messageType
MessageTypeThe type of the Harp message.
value
byteThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type and payload.
FromByte(int, int, MessageType, byte)
Returns a HarpMessage with the specified address, message type, port, and a single value 8-bit unsigned integer payload.
public static HarpMessage FromByte(int address, int port, MessageType messageType, byte value)
Parameters
address
intThe address of the register to which the Harp message refers to.
port
intThe origin or destination of the Harp message, for routing purposes.
messageType
MessageTypeThe type of the Harp message.
value
byteThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromByte(int, double, MessageType, byte)
Returns a HarpMessage with the specified address, message type, timestamp, and a single value 8-bit unsigned integer payload.
public static HarpMessage FromByte(int address, double timestamp, MessageType messageType, byte value)
Parameters
address
intThe address of the register to which the Harp message refers to.
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
value
byteThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromByte(int, int, double, MessageType, byte)
Returns a HarpMessage with the specified address, message type, port, timestamp, and a single value 8-bit unsigned integer payload.
public static HarpMessage FromByte(int address, int port, double timestamp, MessageType messageType, byte value)
Parameters
address
intThe address of the register to which the Harp message refers to.
port
intThe origin or destination of the Harp message, for routing purposes.
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
value
byteThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.
FromByte(int, MessageType, params byte[])
Returns a HarpMessage with the specified address, message type, and an array payload of 8-bit unsigned integers.
public static HarpMessage FromByte(int address, MessageType messageType, params byte[] values)
Parameters
address
intThe address of the register to which the Harp message refers to.
messageType
MessageTypeThe type of the Harp message.
values
byte[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type and payload.
FromByte(int, int, MessageType, params byte[])
Returns a HarpMessage with the specified address, message type, port, and an array payload of 8-bit unsigned integers.
public static HarpMessage FromByte(int address, int port, MessageType messageType, params byte[] values)
Parameters
address
intThe address of the register to which the Harp message refers to.
port
intThe origin or destination of the Harp message, for routing purposes.
messageType
MessageTypeThe type of the Harp message.
values
byte[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromByte(int, double, MessageType, params byte[])
Returns a HarpMessage with the specified address, message type, timestamp, and an array payload of 8-bit unsigned integers.
public static HarpMessage FromByte(int address, double timestamp, MessageType messageType, params byte[] values)
Parameters
address
intThe address of the register to which the Harp message refers to.
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
values
byte[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromByte(int, int, double, MessageType, params byte[])
Returns a HarpMessage with the specified address, message type, port, timestamp, and an array payload of 8-bit unsigned integers.
public static HarpMessage FromByte(int address, int port, double timestamp, MessageType messageType, params byte[] values)
Parameters
address
intThe address of the register to which the Harp message refers to.
port
intThe origin or destination of the Harp message, for routing purposes.
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
values
byte[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.