Difference between revisions of "How to use UBUS commands for Bluetooth device scanning / pairing"
From Teltonika Networks Wiki
(Created page with "Bluetooth skanavimas vyksta siunčiant ubus komandą: ubus call blesem scan.start Skanavimo rezultatų gavimas siunčiant ubus komandą: ubus call blesem scan.result Kur...") |
|||
Line 1: | Line 1: | ||
+ | In this topic you can find how to using CLI / SSH command '''UBUS''' scan and pair new Bluetooth devices on RUTX. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | * Enable Bluetooth in Web UI menu '''Network -> Bluetooth -> General'''. Click ''"Save&Apply"''. | ||
+ | |||
Bluetooth skanavimas vyksta siunčiant ubus komandą: | Bluetooth skanavimas vyksta siunčiant ubus komandą: | ||
Revision as of 11:31, 24 April 2020
Main Page > General Information > Configuration Examples > Hardware application > How to use UBUS commands for Bluetooth device scanning / pairingIn this topic you can find how to using CLI / SSH command UBUS scan and pair new Bluetooth devices on RUTX.
- Enable Bluetooth in Web UI menu Network -> Bluetooth -> General. Click "Save&Apply".
Bluetooth skanavimas vyksta siunčiant ubus komandą:
ubus call blesem scan.start
Skanavimo rezultatų gavimas siunčiant ubus komandą:
ubus call blesem scan.result
Kuri parodys sąrašą tokiu formatu:
{
"scanning": 0, "devices": [ { "name": "RT_T", "rssi": -72, "address": "FF:CB:FA:6A:23:CB" } ]
}
Skanavimas vyksta apie 30sek., todėl su „scanning“ rodoma ar vis dar yra vykdomas skanavimas. Šiuo atveju, galima užklausinėti „scan.result“ kol „scanning“ = 1.