React Native SDK
Device Communication
Query Device Information

Query Device Information

selectedDevice is a device selected from the SDK device list. Run these examples inside an async function.

ℹ️

Currently only bleCapability and lanCapability are supported for retrieving device information

Query Device Information

import type { IDevice } from 'react-native-gizwits-sdk-v5/lib/types';
const device: IDevice = selectedDevice;
let resDataBle = await device.bleCapability.getDeviceInfo()
let resDataLan = await device.lanCapability.getDeviceInfo()