Patent attributes
An electronic device that has a first APP installed and includes a first antenna and a second antenna. The electronic device is configured to: display a first interface of the first APP; display a second interface in response to a first operation on the first interface; receive and display a quantity M set by a user on the second interface; receive and display a device type of M home devices that is set by the user on the second interface; request, in response to a second operation on the second interface, a cloud server to allocate a registration credential to the M home devices; broadcast, by using the first antenna, a first message including the registration credential, an SSID, and an access password, to indicate the M home devices to access a wireless local area network and register with the cloud server based on the registration credential.