The error I get is shown in the screen below. It cannot find TuyaActivator and FamilyManager.
After doing the following:
TuyaCameraActivatorBuilder builder = new TuyaCameraActivatorBuilder();
builder.setSsid(etSSID.getText().toString());
builder.setToken(token);
builder.setPassword(etKey.getText().toString());
builder.setTimeOut(100);
builder.setListener(mListener);
I set the ITuyaCameraDevActivator mTuyaActivator = ITuyaCameraDevActivator.newCameraDevActivator(builder);
mTuyaActivator.createQRCode();
mTuyaActivator.start();
It gives me the error newCameraDevActivator not found. Please see the screenshot below.
I am using the tuyasdk-home-2.6.4r95 aar file. It has the following issues. I have imported the aar file.
I am trying to get activator token using
TuyaActivator.getInstance().getActivatorToken (FamilyManager.getInstance().getCurrentHomeId(),new ITuyaActivatorGetToken() { @Override public void onSuccess(String token) { //获取token成功 }
The error I get is shown in the screen below. It cannot find TuyaActivator and FamilyManager.
After doing the following: TuyaCameraActivatorBuilder builder = new TuyaCameraActivatorBuilder(); builder.setSsid(etSSID.getText().toString()); builder.setToken(token); builder.setPassword(etKey.getText().toString()); builder.setTimeOut(100); builder.setListener(mListener);
I set the ITuyaCameraDevActivator mTuyaActivator = ITuyaCameraDevActivator.newCameraDevActivator(builder); mTuyaActivator.createQRCode(); mTuyaActivator.start();
It gives me the error newCameraDevActivator not found. Please see the screenshot below.