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

App development related product technical discussions, including OEM App, App SDK, device control interface development, mini program development and other topics.


Post Reply
Fryer315
Posts: 2

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!!! 😫
daxiong
Posts: 31

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

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

Fryer315
Posts: 2

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

Thank you kindly for the quick response!!!

Post Reply