Changes

no edit summary
Line 2: Line 2:     
----
 
----
 +
The '''ubus''' command line tool allows to interact with the '''ubusd''' server (with all currently registered services). It's useful for investigating/debugging registered namespaces as well as writing shell scripts. For calling procedures with parameters and returning responses it uses the user-friendly JSON format. Below is an '''Help output''' of this command:
 +
---
 +
root@Teltonika-RUTX11:~# ubus -h
 +
ubus: unrecognized option: h
 +
Usage: ubus [<options>] <command> [arguments...]
 +
Options:
 +
-s <socket>:          Set the unix domain socket to connect to
 +
-t <timeout>:          Set the timeout (in seconds) for a command to complete
 +
-S:                    Use simplified output (for scripts)
 +
-v:                    More verbose output
 +
-m <type>:            (for monitor): include a specific message type
 +
                        (can be used more than once)
 +
-M <r|t>              (for monitor): only capture received or transmitted traffic
 +
 +
Commands:
 +
- list [<path>]                        List objects
 +
- call <path> <method> [<message>]    Call an object method
 +
- listen [<path>...]                  Listen for events
 +
- send <type> [<message>]              Send an event
 +
- wait_for <object> [<object>...]      Wait for multiple objects to appear on ubus
 +
- monitor                              Monitor ubus traffic
 +
---
    
* Enable Bluetooth in Web UI menu '''Network -> Bluetooth -> General'''. Click ''"Save&Apply"''.
 
* Enable Bluetooth in Web UI menu '''Network -> Bluetooth -> General'''. Click ''"Save&Apply"''.

Navigation menu