Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
PDF Export
More
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
Navigation menu
COMMUNITY
ABOUT
login
Personal tools
Log in
Create account
EN
EN
LT
DE
IT
ES
FR
RU
PL
PT
BR
JA
TR
NAVIGATION
Recent changes
Random page
What links here
Upload file
Help
Tools
Categories
BAT Uninterruptable Power Supplies
Downloads
FAQ
General Information
IoT Platforms
OTD Outdoor routers
RUT Routers
RUTM Routers
RUTX Routers
TAP Access Points
TCR Routers
TRB Gateways
TRM Modems
TSF Switches
TSW Switches