Page 1 of 1

How to detect device that is in pairing mode

Posted: 2024年 Jan 3日 17:50
by Blazerstrom

hello, i am developing a mobile apps just like smart life... in this apps, i need to detect device that is in the pairing mode, and then choose the device to be paired.

can anyone help me how to detect device that is in the pairing mode, and how to paired the device that i choose to pair ?


Re: How to detect device that is in pairing mode

Posted: 2024年 Jan 4日 10:19
by callannna

What type of your device is it? you need to determine the type of your device.
If it is a Bluetooth device, you can use Bluetooth scanning to discover devices in pairing mode. You can refer to the following documents:
For iOS platform,iOS Bluetooth Development Guide (https://developer.tuya.com/en/docs/app- ... vcxzbglphd)
For Android platform, Android Bluetooth Development Guide(https://developer.tuya.com/en/docs/app- ... km4855a1pa)

If it is another type of device, you can refer to the following documents:
For iOS platform, iOS Activator Development Guide(https://developer.tuya.com/en/docs/app- ... cgmlzpfig4)
 For Android platform, Android Wi-Fi Network Configuration Guide(https://developer.tuya.com/en/docs/app- ... ki8lbwu82c)

If you're still unsure about how to detect device that is in pairing mode, you can refer to the following demo projects:
For iOS platform: Swift example (https://github.com/tuya/tuya-home-ios-sdk-sample-swift) and Objective-C example (https://github.com/tuya/tuya-home-ios-sdk-sample-objc)
For Android platform: tuya-home-android-sdk-sample-java (https://github.com/tuya/tuya-home-andro ... ample-java) or tuya-home-android-sdk-sample-kotlin (https://github.com/tuya/tuya-home-andro ... ple-kotlin)

If you have further questions, you can first provide us with more information about your device, and we can offer more targeted assistance.


Re: How to detect device that is in pairing mode

Posted: 2024年 Jan 4日 14:59
by Blazerstrom

hello, thanks for answering.... the device is wifi, wired, and zigbee

i have tried pairing using the wifi, its work, but for example :

i have 3 device that is in pairing mode, and i just want to paired 2 device that i choose

i haven't found the way to select the device, do you know how?


Re: How to detect device that is in pairing mode

Posted: 2024年 Jan 4日 15:08
by 苏打同学

Sorry, the wifi method can't select the devices that correspond to a part of the mapping, it will match all the nearby devices that are in the pending mapping.

You can understand the general logic of the wifi approach, you can refer to the documentation: https://developer.tuya.com/en/docs/app- ... xju76a5iq9