pub const SPINEL_CMD_PROP_VALUE_INSERT: _bindgen_ty_22 = 4;
Expand description

Insert value into property command (Host -> NCP)

Encoding: iD i : Property Id D : Value (encoding depends on the property)

Instructs the NCP to insert the given value into a list-oriented property without removing other items in the list. The resulting order of items in the list is defined by the individual property being operated on.

The payload for this command is the property identifier encoded in the packed unsigned integer format, followed by the value to be inserted. The exact format of the value is defined by the property.

If the type signature of the property consists of a single structure enclosed by an array A(t(...)), then the contents of value MUST contain the contents of the structure (...) rather than the serialization of the whole item (t(...)). Specifically, the length of the structure MUST NOT be prepended to value. This helps to eliminate redundant data.

On success, either a CMD_PROP_VALUE_INSERTED command is emitted for the given property, or a CMD_PROP_VALUE_IS command is emitted of property PROP_LAST_STATUS with value LAST_STATUS_OK.

If an error occurs, the value of PROP_LAST_STATUS will be emitted with the value set to the generated status code for the error.