Method, mobile terminal and storage medium for transferring WiFi address
A method, a mobile terminal and a storage medium for transferring a WiFi address. The method includes acquiring a Bluetooth address of a target device; establishing a Bluetooth connection with the target device to obtain a Bluetooth connection status according to the Bluetooth address; transferring the WiFi address to the target device according to the Bluetooth connection status.
1 . A method perform by a mobile terminal for transferring a WiFi address, wherein the method comprises following steps:
acquiring a Bluetooth address of a target device;
establishing, according to the Bluetooth address, a Bluetooth connection with the target device;
transferring, according to the Bluetooth connection status, the WiFi address to the target device;
wherein said establishing according to the Bluetooth address the Bluetooth connection with the target device to obtain the Bluetooth connection status comprises:
searching, according to the Bluetooth address, for the target device;
sending, to the target device found, a Bluetooth connection request to establish the Bluetooth connection with the target device to obtain the Bluetooth connection status;
wherein said sending to the target device found the Bluetooth connection request to establish the Bluetooth connection with the target device comprises:
triggering the target device to set a device status to waiting for Bluetooth connection; and
sending, to the target device found, the Bluetooth connection request to establish the Bluetooth connection with the target device;
wherein said triggering the target device to set the device status to waiting for Bluetooth connection comprises:
triggering the target device to set the device status to waiting for Bluetooth connection before establishing the Bluetooth connection.
2 . The method for transferring a WiFi address according to claim 1 , wherein said acquiring the Bluetooth address of the target device comprises:
acquiring the Bluetooth address of the target device through a Quick Response (QR) code.
3 . The method for transferring a WiFi address according to claim 2 , wherein said acquiring the Bluetooth address of the target device through the QR code comprises:
scanning, when the QR code is detected, the QR code of the target device; wherein the QR code stores the Bluetooth address of the target device;
parsing the QR code to acquire the Bluetooth address of the target device.
4 . The method for transferring a WiFi address according to claim 1 , wherein said searching according to the Bluetooth address for the target device further comprises:
searching, according to the Bluetooth addresses, for the target device within a preset period;
reacquiring, if searching for the target device within the preset period fails, the Bluetooth address, and searching, according to the reacquired Bluetooth address, for the target device until the target device is found.
5 . The method for transferring a WiFi address according to claim 1 , wherein said searching according to the Bluetooth address for the target device further comprises:
saving, according to a Bluetooth search result, the target device found.
6 . The method for transferring a WiFi address according to claim 1 , wherein said transferring according to the Bluetooth connection status the WiFi address to the target device comprises:
determining the Bluetooth connection status;
sending, if the Bluetooth connection status is determined to be connected, the WiFi address to the target device through a Bluetooth channel.
7 . A mobile terminal, wherein the mobile terminal comprises:
a memory,
a processor, and
a Bluetooth technology-based WiFi address transfer program that is stored in the memory and operable on the processor, and the processor, when executing the Bluetooth technology-based WiFi address transfer program, implementing following instructions:
acquiring a Bluetooth address of a target device;
establishing, according to the Bluetooth address, a Bluetooth connection with the target device; and
transferring, according to the Bluetooth connection status, the WiFi address to the target device;
wherein said establishing the Bluetooth connection with the target device to obtain the Bluetooth connection status according to the Bluetooth address comprises:
searching, according to the Bluetooth address, for the target device;
sending, to the target device found, a Bluetooth connection request to establish the Bluetooth connection with the target device to obtain the Bluetooth connection status;
wherein said sending to the target device found the Bluetooth connection request to establish the Bluetooth connection with the target device comprises:
triggering the target device to set a device status to waiting for Bluetooth connection;
sending, to the target device found, the Bluetooth connection request to establish the Bluetooth connection with the target device;
wherein said triggering the target device to set the device status to waiting for Bluetooth connection comprises:
triggering the target device to set the device status to waiting for Bluetooth connection before establishing the Bluetooth connection.
8 . The mobile terminal according to claim 7 , wherein said acquiring a Bluetooth address of a target device further comprises:
recognizing a Quick Response (QR) code generated from the Bluetooth address of the target device.
9 . The mobile terminal according to claim 7 , wherein said acquiring the Bluetooth address of the target device comprises:
acquiring the Bluetooth address of the target device through a Quick Response (QR) code.
10 . The mobile terminal according to claim 9 , wherein said acquiring the Bluetooth address of the target device through the QR code comprises:
scanning, when the QR code is detected, the QR code of the target device; wherein the QR code stores the Bluetooth address of the target device;
parsing the QR code to acquire the Bluetooth address of the target device.
11 . The mobile terminal according to claim 7 , wherein said searching for the target device according to the Bluetooth address further comprises:
searching, according to the Bluetooth addresses, for the target device within a preset period;
requiring, if searching for the target device within the preset period fails, the Bluetooth address, and searching, according to the reacquired Bluetooth address, for the target device until the target device is found.
12 . The mobile terminal according to claim 7 , wherein said searching for the target device according to the Bluetooth address further comprises:
saving, according to a Bluetooth search result, the target device found.
13 . The mobile terminal according to claim 7 , wherein said transferring the WiFi address to the target device according to the Bluetooth connection status comprises:
identifying the Bluetooth connection status;
sending, if the Bluetooth connection status is connected, the WiFi address to the target device through a Bluetooth channel.
14 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium having stored thereon a Bluetooth technology-based WiFi address transfer program, the WiFi address transfer program, when executed by a processor, implementing following steps:
acquiring a Bluetooth address of a target device;
establishing, according to the Bluetooth address, a Bluetooth connection with the target device;
transferring, according to the Bluetooth connection status, the WiFi address to the target device;
wherein said establishing according to the Bluetooth address the Bluetooth connection with the target device to obtain the Bluetooth connection status comprises:
searching, according to the Bluetooth address, for the target device;
sending, to the target device found, a Bluetooth connection request to establish the Bluetooth connection with the target device to obtain the Bluetooth connection status;
wherein said sending to the target device found the Bluetooth connection request to establish the Bluetooth connection with the target device comprises:
triggering the target device to set a device status to waiting for Bluetooth connection; and
sending, to the target device found, the Bluetooth connection request to establish the Bluetooth connection with the target device;
wherein said triggering the target device to set the device status to waiting for Bluetooth connection comprises:
triggering the target device to set the device status to waiting for Bluetooth connection before establishing the Bluetooth connection.