主权项 |
1. A method of connecting a lighting control device to a network, comprising the steps of:
detecting wirelessly with a first electronic device for controlling lighting, one or more available network messages corresponding to one or more other electronic devices within wireless range of the first electronic device; connecting wirelessly to a next electronic device of the one or more other electronic devices, the next electronic device being a new electronic device having a device ID that does not match a previous device ID listed in a previously connected device list on a memory of the first electronic device, but if there are no detected new electronic devices, then the next electronic device is an electronic device listed in the previously connected device list to which a first electronic device last connected least-recently; sending wirelessly a first device ID to the next electronic device, the first device ID corresponding to the first electronic device; maintaining a connection to the next electronic device if a registering handshake message is received via the next electronic device; disconnecting from the next electronic device if the registering handshake message is not received within a predetermined timeout amount of time; recording the device ID of the next electronic device in the previously connected device list on the memory of the first electronic device if the first electronic device disconnected from the next electronic device for failing to receive the registering handshake message. |