Initialization
Initialize SDK
ℹ️
serverInfo is optional. If not provided, it will be automatically selected based on the region of the mobile phone.
var gizConfigStruct = GizConfigStruct(appID: "xxx", appSecret: "xxx", productInfos: [
GizProductInfoStruct(productKey: "xxx", productSecret: "xxx"),
], serverInfo: nil)
GizSDKManager.sharedInstance.initSDK(config: gizConfigStruct);China Mobile AiJia Module Discovery
productInfos supports the optional cmbDeviceTypeId. For China Mobile AiJia CMB BLE devices, supply the device type ID so the SDK can map advertisements to products. Omit it for ordinary devices.
let productInfo = GizProductInfoStruct(
productKey: "PK", productSecret: "PS", cmbDeviceTypeId: "DEVICE_TYPE_ID"
)