iOS SDK
Device Communication
Query Data Points

Query Data Points

Query

ℹ️

attrs contains data point names. Pass nil or an empty array for all data points. There is no default argument, so it cannot be omitted.

 // Same for mqtt and lan
 let allData = await device.bleCapability.getDp(attrs: nil)
 // or
 let selectedData = await device.bleCapability.getDp(attrs: ["power"])