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

interfaceNetworkState
PropertyTypeDescription
isConnectedbooleanWhether connected
networkTypestringNetwork type: WIFI | 5G | 4G | 3G | 2G | GPRS | UNKNOWN | NONE
signalStrengthnumberSignal strength, unit: dBm

Examples

Example

const network = group.getNetwork();
console.log(network.isConnected);  // true