Creates a message with every field zero.
The shape to build, or the id or name of a message the engine types.
The zeroed message, ready for its fields to be set.
const heartbeat = message('HEARTBEAT')heartbeat.set('type', 18)heartbeat.set('system_status', 4)const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 }) Copy
const heartbeat = message('HEARTBEAT')heartbeat.set('type', 18)heartbeat.set('system_status', 4)const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 })
Creates a message with every field zero.