Patent ID: 10856129

Abstract:
The present disclosure relates to a sensor network, machine type communication (MTC), machine-to-machine (M2M) communication, and technology for internet of things (IoT). 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. An operating method of a first electronic device in a communication system is provided. The operating method includes detecting that a setup of a wireless connection with a second electronic device for a short range communication has been started; receiving, from the second electronic device, state information for determining a role of the first electronic device for the wireless connection; determining the role of the first electronic device based on the state information; completing the setup of the wireless connection based on the determined role; and communicating with the second electronic device through the wireless connection based on the determined role.