Builds a message from plain values, keyed by field name.
A field left out stays zero, which is what a sender filling in part of a message wants.
The shape to build.
The fields to set.
The message.
If a name is not a field of the message, or a value does not fit its field.
const position = schemaFor('GLOBAL_POSITION_INT')const report = fromObject(position, { lat: -33856780, lon: 151215300, hdg: 18000 }) Copy
const position = schemaFor('GLOBAL_POSITION_INT')const report = fromObject(position, { lat: -33856780, lon: 151215300, hdg: 18000 })
Builds a message from plain values, keyed by field name.
A field left out stays zero, which is what a sender filling in part of a message wants.