From e56ff2bea01f26810f8a42609abcf33d2ad2711b Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sat, 14 Oct 2017 19:14:07 +0200 Subject: [PATCH] README: add note about share plugin --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d5cae7..58465e0 100644 --- a/README.md +++ b/README.md @@ -65,12 +65,15 @@ identity packet (a sort of a handshake) is received, a connection to the sender's address will be made. Known devices are cached in `~/.cache/mconnect/devices`. +File sharing to a device requires TCP ports 9970-9975 to be open. Files shared +from the device are saved to `~/Downloads/mconnect/`. + ## The client List discovered devices: ``` -$ ./mconnectctl list-devices +$ mconnectctl list-devices Devices: /org/mconnect/device/0 673ac2db27d2a331 - Motorola Moto G Maciek ``` @@ -78,13 +81,13 @@ Devices: Accept a device (previously done only through the configuration): ``` -$ ./mconnectctl allow-device /org/mconnect/device/0 +$ mconnectctl allow-device /org/mconnect/device/0 ``` Show device details: ``` -$ ./mconnectctl show-device /org/mconnect/device/0 +$ mconnectctl show-device /org/mconnect/device/0 Device Name: Motorola Moto G Maciek ID: 673ac2db27d2a331 @@ -96,6 +99,15 @@ Device Connected: true ``` +Share a file/URL/text: + +``` +$ mconnectctl share-file /org/mconnect/device/0 +$ mconnectctl share-url /org/mconnect/device/0 www.google.com +$ mconnectctl share-text /org/mconnect/device/0 'battery horse staple' +``` + + ## DBus API The API is not documented. Use D-Feet or busctl to introspect and invoke methods