Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
How to use UBUS commands for Bluetooth device scanning / pairing
(view source)
Revision as of 12:33, 24 April 2020
49 bytes added
,
12:33, 24 April 2020
no edit summary
Line 53:
Line 53:
}
}
...
...
−
−
The list of devices always contains '''"rssi"''' and '''"address"''', but '''"name"''' output might be missing:
The list of devices always contains '''"rssi"''' and '''"address"''', but '''"name"''' output might be missing:
Line 75:
Line 73:
...
...
+
* Device pairing command:
+
...
+
ubus call blesem pair '{"address":"FF:CB:FA:6A:23:CB"}'
+
...
−
Prietaiso „pair’inimas“ su ubus komanda
:
+
On success pairing you should see output
:
−
ubus call blesem pair '
{"
address
":"
FF:CB:FA:6A:23:CB
"}
'
+
...
+
{
+
"
success
": "
device successfully paired
"
+
}
+
...
−
Kuri parodys ar pavyko supair’inti
,
+
If fails
,
you will see error output:
−
klaidos atveju bus:
+
...
−
+
{
−
{
"error": "failed to pair because…."
"error": "failed to pair because…."
−
}
+
}
+
...
−
sėkmingu:
+
* On
success
pairing new
device
info will be written in '''
blesem
''' service
config:
−
−
{
−
"
success
": "
device
successfully paired"
−
}
−
−
Sėkmingu atveju, automatiškai į
blesem config
bus įrašoma
:
+
...
config device
config device
option address "FF:CB:FA:6A:23:CB"
option address "FF:CB:FA:6A:23:CB"
+
...
Unpair komanda tiesiog ištrins config device sekciją.
Unpair komanda tiesiog ištrins config device sekciją.
SarunasKa
Administrators
479
edits