Page 1 of 1

Is it possible to connect to a virtual device with smart app sdk 🤔

Posted: 2025年 Apr 25日 04:45
by Fryer315

Hi! I am looking for a way to connect to a virtual device with Smart App SDK.
I have a product and i can create a virtual device for it. The Tuya Developer Platform generates a qr code that after scanning creates a virtual device ( Tuya Developer Platform > Product > Device Debugging > Add Virtual Device ) . However, I am only able to scan the code with Smart Life app, meanwhile i would like to do it myself using Smart App SDK. I followed the https://developer.tuya.com/en/docs/app- ... ice%20UUID, which led me to "deviceQrCodeParse" method in Kotlin. Unfortunately i get an error, that the qr code format is invalid.

  • can i even do this with this method?
  • can i maybe somehow connect to already created virtual device?
  • what is a correct format of the QR code that will allow me to use the above mentioned method.
    Please help me, my boss will eat me alive if i dont do this!!! 😫

Re: Is it possible to connect to a virtual device with smart app sdk 🤔

Posted: 2025年 Apr 25日 11:08
by daxiong

💬
The smart app SDK does not support adding virtual devices. If you need to debug the device control panel, it is recommended to use the Smart Life app to scan and add the device, and then proceed with panel business development and debugging.


Re: Is it possible to connect to a virtual device with smart app sdk 🤔

Posted: 2025年 Apr 25日 15:09
by Fryer315

Thank you kindly for the quick response!!!