iOS SDK
Device Communication
Control

Device Control

ℹ️

connect the device first

Send Control Command

import GizwitsiOSSDK
// Same for mqtt and lan
var newData = GizJSON()
newData["power"] = true
let resData = await device.bleCapability.sendDp(data: newData)