React Native SDK
Device Communication
Query Data Points

Query Data Points

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

Query

ℹ️

dps are the states to be queried, passing an empty list or not passing anything represents querying all data points.

 import {
   IDevice,
 } from 'react-native-gizwits-sdk-v5/lib/types';
 const device: IDevice = selectedDevice;
 const dps: string[] = []
 // Same for mqtt and lan
 let resData = await device.bleCapability.getDp(dps)