petr's changes
This commit is contained in:
37
04-network scan/get-child.bru
Normal file
37
04-network scan/get-child.bru
Normal file
@@ -0,0 +1,37 @@
|
||||
meta {
|
||||
name: Information About Found Devices
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/get_child
|
||||
body: formUrlEncoded
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:form-urlencoded {
|
||||
~i: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
# Information About Found Devices
|
||||
|
||||
Retrieve results from the network scan.
|
||||
|
||||
## Set Parameters
|
||||
- `i` (optional): Index of device for sending info back (0-searched devices count)
|
||||
|
||||
## Response
|
||||
If `i` is not set:
|
||||
- `sd`: 0 if scan is done else 1
|
||||
- `max`: 1 if max devices reached else 0
|
||||
- `c`: Discovered devices count
|
||||
- `ip`: Discovered device IP address for each index (returned as numbered fields)
|
||||
|
||||
If `i` is set and `i` < devices count:
|
||||
- `ip`: Discovered device IP address at index `i`
|
||||
|
||||
If `i` is set and `i` >= devices count:
|
||||
- Empty JSON response
|
||||
}
|
||||
Reference in New Issue
Block a user