TuyaInc / tuyasmart_ios_sdk

MIT License
22 stars 6 forks source link

Hello, I installed TuyaSmartCamera through pod,It's added successfully but when I'm importing TuyaSnartCamera in my view controller it's giving error that No such module 'TuyaSmartCamera' #13

Closed rajesh0092 closed 5 years ago

0x5e commented 5 years ago

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.

rajesh0092 commented 5 years ago

Ok Thanks, And for tuyasmartdoorlock what is the library..................

0x5e commented 5 years ago

https://github.com/TuyaInc/tuyasmart_home_ios_sdk

rajesh0092 commented 5 years ago

screenshot 2019-03-05 at 4 32 37 pm screenshot 2019-03-05 at 4 32 52 pm

On the above sdk smart camera calling functionality is not available.How can I use live camera functionality can you please suggest.

tuyaLang commented 5 years ago

tuyasmartdoorlock is also use TuyaSmartCamera sdk, and you need develop the panel by yourself.

rajesh0092 commented 5 years ago

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.........................

tuyaLang commented 5 years ago

Please refer to the document: https://tuyainc.github.io/tuyasmart_camera_ios_sdk_doc/en/resource/initiate_sdk.html

rajesh0092 commented 5 years ago

Yaa Thanks, Really I was searching this..... Thanks Again.

rajesh0092 commented 5 years ago

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