TuyaSmartBLEWifiActivator Class Reference

Inherits from NSObject
Declared in TuyaSmartBLEWifiActivator.h

  bleWifiDelegate

@property (nonatomic, weak) id<TuyaSmartBLEWifiActivatorDelegate> bleWifiDelegate

  deviceUUID

@property (nonatomic, strong) NSString *deviceUUID

+ sharedInstance

单例

+ (instancetype)sharedInstance

Discussion

单例

Declared In

TuyaSmartBLEWifiActivator.h

– startConfigBLEWifiDeviceWithUUID:homeId:productId:ssid:password:timeout:success:failure:

connect ble wifi device 连接蓝牙 Wifi 设备

- (void)startConfigBLEWifiDeviceWithUUID:(NSString *)UUID homeId:(long long)homeId productId:(NSString *)productId ssid:(NSString *)ssid password:(NSString *)password timeout:(NSTimeInterval)timeout success:(TYSuccessHandler)success failure:(TYFailureHandler)failure

Parameters

UUID

蓝牙设备唯一标识

homeId

当前家庭Id

productId

产品Id

ssid

路由器热点名称

password

路由器热点密码

timeout

轮询时间

success

操作成功回调

failure

操作失败回调

Discussion

connect ble wifi device 连接蓝牙 Wifi 设备

Declared In

TuyaSmartBLEWifiActivator.h

– stopDiscover

stop discover device 停止发现设备

- (void)stopDiscover

Discussion

stop discover device 停止发现设备

Declared In

TuyaSmartBLEWifiActivator.h