react-native-gizwits-sdk-v5 1.5.0-beta.4 → 1.5.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,6 +23,7 @@ RCT_EXTERN_METHOD(updateDeviceInfo:(NSDictionary *)options result:(RCTResponseSe
|
|
|
23
23
|
RCT_EXTERN_METHOD(unBind:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
24
24
|
RCT_EXTERN_METHOD(stopProvideWiFiCredentials:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
25
25
|
RCT_EXTERN_METHOD(provideWiFiCredentials:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
26
|
+
RCT_EXTERN_METHOD(provideWiFiCredentialsWithAirLink:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
26
27
|
|
|
27
28
|
RCT_EXTERN_METHOD(startMusicalRhythm:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
28
29
|
RCT_EXTERN_METHOD(stopMusicalRhythm:(NSDictionary *)options result:(RCTResponseSenderBlock)result)
|
|
@@ -81,12 +81,10 @@ struct ProvideWiFiCredentialsParams: Decodable {
|
|
|
81
81
|
var timeout: Int
|
|
82
82
|
}
|
|
83
83
|
struct ProvideWiFiCredentialsWithAirLinkParams: Decodable {
|
|
84
|
-
var type: GizwitsiOSSDK.GizCapability
|
|
85
|
-
var id: String
|
|
86
84
|
var ssid: String
|
|
87
85
|
var password: String
|
|
88
86
|
var timeout: Int
|
|
89
|
-
var
|
|
87
|
+
var productKeys: [String]
|
|
90
88
|
}
|
|
91
89
|
struct StopProvideWiFiCredentialsParams: Decodable {
|
|
92
90
|
var type: GizwitsiOSSDK.GizCapability
|
|
@@ -467,11 +465,20 @@ class RNGizDeviceManagerModule: RCTEventEmitter {
|
|
|
467
465
|
}
|
|
468
466
|
Task {
|
|
469
467
|
var data: GizResult<GizBaseProfile?, GizActivatorException?>
|
|
470
|
-
data = await ESPTouchSmartConfig.sharedInstance.provideWiFiCredentialsWithAirLink(ssid: params.ssid, password: params.password, timeout: params.timeout,
|
|
468
|
+
data = await ESPTouchSmartConfig.sharedInstance.provideWiFiCredentialsWithAirLink(ssid: params.ssid, password: params.password, timeout: params.timeout, productKeys: params.productKeys, processHandler: progressHandler)
|
|
471
469
|
GizRNCallbackManager.callbackWithResult(callback: result, result:data)
|
|
472
470
|
}
|
|
473
471
|
}
|
|
474
472
|
}
|
|
473
|
+
|
|
474
|
+
@objc
|
|
475
|
+
public func stopProvideWiFiCredentialsWithAirLink(_ options: NSDictionary, result: @escaping RCTResponseSenderBlock) {
|
|
476
|
+
Task {
|
|
477
|
+
var data: GizResult<Int?, GizActivatorException?>
|
|
478
|
+
data = await ESPTouchSmartConfig.sharedInstance.stopProvideWiFiCredentialsWithAirLink()
|
|
479
|
+
GizRNCallbackManager.callbackWithResult(callback: result, result:data)
|
|
480
|
+
}
|
|
481
|
+
}
|
|
475
482
|
|
|
476
483
|
@objc
|
|
477
484
|
public func stopProvideWiFiCredentials(_ options: NSDictionary, result: @escaping RCTResponseSenderBlock) {
|
package/package.json
CHANGED