How to detect device that is in pairing mode

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


Post Reply
Blazerstrom
Posts: 13

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 ?

callannna
Posts: 15

Re: How to detect device that is in pairing mode

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.

Blazerstrom
Posts: 13

Re: How to detect device that is in pairing mode

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?

苏打同学
Posts: 7

Re: How to detect device that is in pairing mode

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

Post Reply