An electronic device comprising: a display device; a memory; a communication interface configured to support a first wireless communication scheme and a second wireless communication scheme; and a processor electrically connected with the display device, the memory, and the communication interface, wherein the communication interface is configured to receive a first advertising signal, which is based on the first wireless communication scheme, from an external device, wherein the first advertising signal includes device identification information of the external device and pairing information representing whether the external device is currently paired with another device, and wherein the processor is configured to: determine, based on the pairing information, whether the external device is currently paired, when the external device is not paired, output a user interface for performing a pairing with the external device, when at least one of a history of a pairing with the external device, and/or user account information in common with the external device is present, perform the pairing with the external device, in response to a user input made through the output user interface, and transceive, with the external device, data based on the second wireless communication scheme through the communication interface, when the pairing is completed, characterized in that when a second advertising signal from the external device is received while the user interface is output, the processor is further configured to terminate the user interface in response to the second advertising signal indicating that the external device is currently paired with another device. a display device; a memory; a communication interface configured to support a first wireless communication scheme and a second wireless communication scheme; and a processor electrically connected with the display device, the memory, and the communication interface, wherein the communication interface is configured to receive a first advertising signal, which is based on the first wireless communication scheme, from an external device, wherein the first advertising signal includes device identification information of the external device and pairing information representing whether the external device is currently paired with another device, and wherein the processor is configured to: determine, based on the pairing information, whether the external device is currently paired, when the external device is not paired, output a user interface for performing a pairing with the external device, when at least one of a history of a pairing with the external device, and/or user account information in common with the external device is present, perform the pairing with the external device, in response to a user input made through the output user interface, and transceive, with the external device, data based on the second wireless communication scheme through the communication interface, when the pairing is completed, characterized in that when a second advertising signal from the external device is received while the user interface is output, the processor is further configured to terminate the user interface in response to the second advertising signal indicating that the external device is currently paired with another device. determine, based on the pairing information, whether the external device is currently paired, when the external device is not paired, output a user interface for performing a pairing with the external device, when at least one of a history of a pairing with the external device, and/or user account information in common with the external device is present, perform the pairing with the external device, in response to a user input made through the output user interface, and transceive, with the external device, data based on the second wireless communication scheme through the communication interface, when the pairing is completed, characterized in that when a second advertising signal from the external device is received while the user interface is output, the processor is further configured to terminate the user interface in response to the second advertising signal indicating that the external device is currently paired with another device.