Changes

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ą.

Navigation menu