The scan takes about 30 seconds. The '''"scanning": 1''' output shows us that scan still in progress. You can use "scan.result" until '''"scanning": 1'''. You should see similar output:
+
The scan takes about 30 seconds. The '''"scanning": 1''' output shows us that scan still in progress. You can use '''scan.result''' until '''"scanning": 1'''. You should see similar output:
...
...
Line 56:
Line 56:
−
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.
+
The list of devices always contains '''"rssi"''' and '''"address"''', but '''"name"''' output might be missing:
+
+
...
+
{
+
"scanning": 0,
+
"devices": [
+
{
+
"rssi": -42,
+
"address": "28:21:06:02:72:AD"
+
},
+
{
+
"name": "RT_T",
+
"rssi": -77,
+
"address": "C6:0D:52:5E:35:D7"
+
}
+
]
+
}
+
...
+
−
Toliau sąrašas prietaisų. Visada bus „rssi“ ir „address“ laukeliai, tačiau nevisada bus „name“ laukelis.