isP2PActiveSync
Requires:
P2PKit≥2.0.3@ray-js/ray≥1.3.15
Platforms:
iOSAndroid
Method signature
isP2PActiveSync(params: )Minimum SDK versions
- iOS
ThingSmartP2PKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-p2pkit - ≥ 5.2.0
Description
check P2P status
Parameters
| Property | Type | Required | Default | Description | P2PKit Since | Minimum SDK versions |
|---|---|---|---|---|---|---|
deviceId | string | Yes | - | Device ID | v2.0.0 | — |
mode | number | No | 0 | Connection mode, 0: INTERNET 1: LAN | v2.0.0 | — |
timeout | number | No | 0 | Timeout (ms). Defaults: INTERNET 15000 ms, LAN 3000 ms | v2.0.0 | — |
Return Value
None