close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

zorb

CLI tool for Zenoh introspection and conditional command execution.

Usage

zorb [--port <PORT>] [--orb-id <ORB_ID>] <COMMAND>
  • port will default to 7447
  • orb id when not given as an arg will be read from the system using the orb-info crate

pub - Publish Messages

zorb pub <KEYEXPR> <PAYLOAD>

Example:

zorb pub test "hello world"

sub - Subscribe to Messages

zorb sub <KEYEXPR> [--type <TYPE>]

The --type flag enables rkyv deserialization for registered types.

Example:

zorb sub connd/net/changed -t orb_connd_events::Connection 

when - Conditional Command Execution

zorb when <KEYEXPR> [--type <TYPE>] <COMMAND>

Executes a shell command when a message is received. Use %s% as a placeholder for the message content.

Example:

zorb when events/** echo %s% >> /tmp/events.log