The following steps outline how to send MeshMS messages manually via the command line.
All of the commands below assume you have authority to call ServalD commands (i.e. sudo
)
First we'll need to set up a keyring and we'll assign a DID to make it easier to find in the Serval Chat app. This only needs to be done once per device.
servald keyring create
A new keyring has been initialised, but there aren't any keys in it yet.servald keyring add
This will generate a new identity and store it in the keyring. You'll need this later.servald keyring set did <sid> <phone> <name>
Now you've attributed a phone number and name to your identity (DID). You are now easier to identify and the Serval Chat app will be able to see and respond to your messages.
The keyring and identity have been set up, so now you can send and receive messages within the Serval Mesh network.
servald meshms send message <sid> <recip_sid> <message>
The message is lodged in the Rhizome database and will be propagated throughout the network.servald meshms list conversations <sid>
You should see the recipient's SID and some details about the conversation.servald meshms list messages <sid> <recip_sid>
Now you can read the message history.servald meshms read messages <sid> <recip_sid>
This should mark the last received message as read.