Read a virtual ressource value by USB connector

Hi,

Is it possible to read a virtual ressource by a connection by SSH on the USB connector ?
If yes, what is the path ?

Thanks
Romuald

Hi Romuald,

Yes, you can. There is a debugging utility for interacting with the DataHub: dhub. It supports most of the DataHub API functions. Type dhub --help to see a list of commands.

Thanks,
Ian

Romuald,

Were you able to monitor you VR locally with the tool provided by Ian ?

Here’s the detailed way to do it:

To get all your VRs on the device enter “dhub list /app/virtual”

root@fx30s:~# dhub list /app/virtual
virtual
   config <output> = {"MyVR":{"dt":1,"v":false}} (ts: 1601469038.261531)
         data type = JSON (e.g., '{"MyVR":{"dt":1,"v":false}}')
         default = JSON: {"MyVR":{"dt":1,"v":false}}
   MyVR
      value <input> = true (ts: 1601469080.835445)
            data type = Boolean
            default = false
   value <placeholder> =
         data type = trigger

And to monitor the status of a given VR (MyVR here) enter “dhub watch /app/virtual/MyVR/value”

root@fx30s:~# dhub watch /app/virtual/MyVR/value
Wed Sep 30 14:31:57.952 2020: true
Wed Sep 30 14:32:07.252 2020: false