module documentation
Network tools for the agent.
| Function | network |
Get network information about the device. |
| Function | network |
Scan for nearby Bluetooth devices. |
| Function | network |
Scan for available Wi-Fi networks. |
| Function | network |
Send an HTTP request and return the response text. |
| Constant | TOOL |
Undocumented |
| Constant | TOOL |
Undocumented |
| Constant | TOOL |
Undocumented |
| Constant | TOOL |
Undocumented |
Get network information about the device.
| Parameters | |
viewViewManager | The view manager for system access. |
| Returns | |
dict | A dict of device and network info. |
Scan for nearby Bluetooth devices.
| Parameters | |
viewViewManager | The view manager for system access. |
timeoutint | Scan duration in milliseconds. Defaults to 3000. |
| Returns | |
list | A list of device name and address strings. |
Scan for available Wi-Fi networks.
| Parameters | |
viewViewManager | The view manager for Wi-Fi access. |
| Returns | |
list | A list of SSID strings with signal strength. |
Send an HTTP request and return the response text.
| Parameters | |
viewViewManager | The view manager for thread access. |
url:str | The URL to send the request to. |
method:str | The HTTP method. Defaults to "GET". |
headers:dict or None | Optional request headers. Defaults to None. |
data:str or None | Optional request body data. Defaults to None. |
| Returns | |
str | The response text. |
TOOL_NETWORK_GET_INFO =
¶
Undocumented
| Value |
|
TOOL_NETWORK_SCAN_BLE =
¶
Undocumented
| Value |
|
TOOL_NETWORK_SCAN_WIFI =
¶
Undocumented
| Value |
|
TOOL_NETWORK_SEND_REQUEST =
¶
Undocumented
| Value |
|