the present disclosure relates to a sensor network , machine type communication , machine - to - machine communication , and technology for internet of things . the present disclosure may be applied to intelligent services based on the above technologies , such as smart home , smart building , smart city , smart car , connected car , health care , digital education , smart retail , security and safety services . a method for operating an electronic device is provided . the method includes measuring a received signal strength indicator of a plurality of signals received from a plurality of lighting devices , and displaying the plurality of lighting devices according to the rssi of the plurality of signals .