Repository navigation
mx-remote 12.1.0
Replace an offline unit of a mesh, and read and send the settings each unit keeps for its mesh, in step with mx-remote-rust 12.1.0.
Added
- Replacing a mesh unit (0x56, units on protocol 0x32 and up):
Remote.query_mesh_replaceable()asks every device which offline units this client can replace, at most every 2 s.Remote.mesh_replaceablelists the units offered in the last 30 s, each once, with the device that listed it.Remote.request_mesh_replace()asks that device to replace one with this client. It is refused before sending where a unit would refuse it: the unit was not listed in the last 30 s, this client is in a mesh or has a default serial, or the unit has a OneIP source, OneIP sink or multiviewer feature this client lacks.- As a controller,
send_mesh_replaceable()andsend_mesh_replace_result()answer such a unit.
- Kept settings (0x57, units on protocol 0x33 and up):
device.mesh_config_digestis the length and crc32 a unit announces of its own kept settings.Remote.request_mesh_config()asks a device for a unit's settings, andRemote.mesh_config()reads them once every frame has arrived in order and the crc32 matches.send_mesh_config_hello(),send_mesh_config()andsend_mesh_config_set()send this client's own settings, an answer to a request, or settings a member is to take.
- New types:
MeshReplaceUnit,MeshReplaceUnits,MeshReplaceable,MeshReplaceResult,MeshSetting,MeshConfigDigestandMeshConfig. New limits:MESH_REPLACE_UNITS_MAX,MESH_REPLACE_NAME_MAXandMESH_CONFIG_MAX. - New callbacks on
MxrCallbacks:on_mesh_replace_queried,on_mesh_replace_units_received,on_mesh_replace_requested,on_mesh_replace_answered,on_mesh_config_requested,on_mesh_config_receivedandon_mesh_config_set_requested.
Changed
- The hello announces protocol version 0x33, the version units stamp on 0x57.
Fixed
- Every frame from opcode 0x00 to 0x57 keeps its sender alive and proves its network path, as a unit treats it. That includes an application's 0x55 message, which was treated as past the opcode table.
Full Changelog: v12.0.0...v12.1.0