Skip to content

Commit

Permalink
remove unused event, updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
npoltorapavlo committed Dec 2, 2020
1 parent f719007 commit 502790b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions UsbAccess/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

## Methods:
```
curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.getFileList","params":{}}' http://127.0.0.1:9998/jsonrpc
curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.getFileList","params":{"path":"www"}}' http://127.0.0.1:9998/jsonrpc
curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.createLink","params":{}}' http://127.0.0.1:9998/jsonrpc
curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.clearLink","params":{}}' http://127.0.0.1:9998/jsonrpc
```

## Responses
```
{"jsonrpc":"2.0","id":3,"result":{"success":true}}
{"jsonrpc":"2.0","id":3,"result":{"success":true}}
{"jsonrpc":"2.0","id":3,"result":{"contents":[{"name":"var","t":"f"},{"name":"..","t":"d"},{"name":"pages","t":"d"},{"name":"logs","t":"f"},{"name":".","t":"d"}],"success":true}}
{"jsonrpc":"2.0","id":3,"result":{"baseURL":"http://localhost:50050/usbdrive","success":true}}
{"jsonrpc":"2.0","id":3,"result":{"success":true}}
```

## Events
```
onUSBMountChanged
None
```

## Full Reference
Expand Down
1 change: 0 additions & 1 deletion UsbAccess/UsbAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const string WPEFramework::Plugin::UsbAccess::SERVICE_NAME = "org.rdk.UsbAccess"
const string WPEFramework::Plugin::UsbAccess::METHOD_GET_FILE_LIST = "getFileList";
const string WPEFramework::Plugin::UsbAccess::METHOD_CREATE_LINK = "createLink";
const string WPEFramework::Plugin::UsbAccess::METHOD_CLEAR_LINK = "clearLink";
const string WPEFramework::Plugin::UsbAccess::EVT_ON_USB_MOUNT_CHANGED = "onUSBMountChanged";
const string WPEFramework::Plugin::UsbAccess::USB_MOUNT_PATH = "/run/media/sda"; // platco
const string WPEFramework::Plugin::UsbAccess::LINK_PATH = "/opt/www/usbdrive";
const string WPEFramework::Plugin::UsbAccess::LINK_URL_HTTP = "http://localhost:50050/usbdrive";
Expand Down
1 change: 0 additions & 1 deletion UsbAccess/UsbAccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace WPEFramework {
static const string METHOD_CREATE_LINK;
static const string METHOD_CLEAR_LINK;
//events
static const string EVT_ON_USB_MOUNT_CHANGED;
//other
static const string USB_MOUNT_PATH;
static const string LINK_PATH;
Expand Down

0 comments on commit 502790b

Please sign in to comment.