Closed rajesh0092 closed 5 years ago
Ok Thanks, And for tuyasmartdoorlock what is the library..................
On the above sdk smart camera calling functionality is not available.How can I use live camera functionality can you please suggest.
tuyasmartdoorlock is also use TuyaSmartCamera sdk, and you need develop the panel by yourself.
TuyaHomeSdk.getRequestInstance().requestWithApiName("tuya.m.ipc.config.get", "1.0", map, new IRequestCallback() { @Override public void onSuccess(Object o) { Log.e("response",o.toString()); String json_str=o.toString(); Gson g = new Gson(); Result result= g.fromJson(json_str,Result.class);
Log.e("initStr", result.getP2pConfig().getInitStr()+"p2pkey"+result.getP2pConfig().getP2pKey());
gotoDeviceControlActivity(finalP2pType,device_id,result.getP2pId(),local_key,result.getPassword(),result.getP2pConfig().getInitStr(),result.getP2pConfig().getP2pKey());
}
@Override
public void onFailure(String s, String s1) {
}
});
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// In android you are passing the method like above I shared,In iOS how I will do the same thing?? How can I get p2pId & Password in iOS please suggest.........................
Please refer to the document: https://tuyainc.github.io/tuyasmart_camera_ios_sdk_doc/en/resource/initiate_sdk.html
Yaa Thanks, Really I was searching this..... Thanks Again.
Hi, request.request(withApiName: "tuya.m.ipc.config.get", postData: [ "devId": deviceModel.devId ], version: "1.0", success: { result in print(result!) }, failure: { error in print(error!) })
This api call not giving any response.Can you please check in your server what is the issue
Did you mean https://github.com/TuyaInc/tuyasmart_camera_ios_sdk ? If you are using swift, please create a oc header bridge file and import the sdk header.