An electronic device comprising: a wireless communication circuit configured to establish wireless communication with a first external device; a light emitting device configured to emit light; and a control circuit electrically connected with the wireless communication circuit and the light emitting device and configured to share information on a location of the electronic device with the first external device, and wherein the control circuit is configured to: receive a first signal comprising information indicating a flashing pattern from the first external device via the wireless communication circuit, in response to the first signal, control the light emitting device to emit light according to the flashing pattern, wherein the flashing pattern is selected from a plurality of flashing patterns, each flashing pattern corresponding to a different location, that indicates at least a part of the location of the electronic device; after the light is emitted, receive, from a plurality of second external devices, a plurality of second signals, each of the plurality of second signals corresponding to a respective one of the plurality of second external devices and comprising flashing pattern information that is determined based on an illuminance sensed by the respective one of the plurality of second external devices; and transmit the plurality of second signals to the first external device; wherein the plurality of second signals comprise information for registering each of the plurality of second external devices with the first external device. a wireless communication circuit configured to establish wireless communication with a first external device; a light emitting device configured to emit light; and a control circuit electrically connected with the wireless communication circuit and the light emitting device and configured to share information on a location of the electronic device with the first external device, and wherein the control circuit is configured to: receive a first signal comprising information indicating a flashing pattern from the first external device via the wireless communication circuit, in response to the first signal, control the light emitting device to emit light according to the flashing pattern, wherein the flashing pattern is selected from a plurality of flashing patterns, each flashing pattern corresponding to a different location, that indicates at least a part of the location of the electronic device; after the light is emitted, receive, from a plurality of second external devices, a plurality of second signals, each of the plurality of second signals corresponding to a respective one of the plurality of second external devices and comprising flashing pattern information that is determined based on an illuminance sensed by the respective one of the plurality of second external devices; and transmit the plurality of second signals to the first external device; receive a first signal comprising information indicating a flashing pattern from the first external device via the wireless communication circuit, in response to the first signal, control the light emitting device to emit light according to the flashing pattern, wherein the flashing pattern is selected from a plurality of flashing patterns, each flashing pattern corresponding to a different location, that indicates at least a part of the location of the electronic device; after the light is emitted, receive, from a plurality of second external devices, a plurality of second signals, each of the plurality of second signals corresponding to a respective one of the plurality of second external devices and comprising flashing pattern information that is determined based on an illuminance sensed by the respective one of the plurality of second external devices; and transmit the plurality of second signals to the first external device; wherein the plurality of second signals comprise information for registering each of the plurality of second external devices with the first external device.