SmartGroupModel.getNetwork()
Requires:
@ray-js/panel-sdk≥1.5.0
Description
Get the network status of the environment the smart group is in
Parameters
None
Return Value
Type: NetworkState
Network status object containing isConnected, networkType, and signalStrength
Referenced Types
interface
NetworkState| Property | Type | Description |
|---|---|---|
isConnected | boolean | Whether connected |
networkType | string | Network type: WIFI | 5G | 4G | 3G | 2G | GPRS | UNKNOWN | NONE |
signalStrength | number | Signal strength, unit: dBm |