Patent attributes
A method and apparatus for establishing a device connection applied to a first device with a camera are provided. The method includes acquiring an image of a second device by the first device through the camera, recognizing the type of the second device through the acquired image of the second device, acquiring a device list corresponding to the type of the second device through an IoT server, and identifying the second device in the device list, acquiring a unique identifier of the second device in the current IoT environment, and using the unique identifier of the second device to initiate a connection request to the second device to establish a connection with the second device. The method may automatically establish a connection between devices with less operation of the devices.