Information processing apparatus, control method for information processing apparatus, and storage medium
A portable terminal transmits a print job to a print apparatus, by connecting to an access point based on connection information acquired from an NFC tag. On completion of the transmission of the print job, the portable terminal deletes the connection information acquired from the NFC tag, from a memory, so that the connection information acquired from the NFC tag is not displayed in a connection history.
1. An information processing apparatus comprising:
a first wireless communicator that performs proximity wireless communication using NFC;
a second wireless communicator that performs wireless communication;
a display that displays an access point connection history based on information stored in a storage unit included in the information processing apparatus;
a memory that stores instructions;
at least one processor that, based on execution of the instructions, executes:
controlling, in a case where the first wireless communicator acquires connection information from an NFC tag of an external apparatus, the second wireless communicator to connect to an access point indicated by the acquired connection information and to transmit data to the external apparatus, wherein the acquired connection information is stored in the storage unit;
determining whether the acquired connection information is generated at random; and
deleting the acquired connection information from the storage unit, in a case where the transmission of the data is completed and it is determined that the acquired connection information is generated at random,
wherein the deleting of the acquired connection information from the storage unit based on completion of the transmission of data is not performed, in a case where it is determined that the acquired connection information is not generated at random.
2. The information processing apparatus according to claim 1 , wherein the external apparatus is a printing apparatus and the data is a print job.
3. The information processing apparatus according to claim 1 , wherein, in a case where the acquired connection information includes a predetermined character string, it is determined that the acquired connection information is the connection information generated at random.
4. The information processing apparatus according to claim 1 ,
wherein the acquired connection information includes an SSID generated by the external apparatus, and
wherein the processor controls the second wireless communicator to connect to an access point indicated by the SSID.
5. A control method for an information processing apparatus comprising a first wireless communicator that performs proximity wireless communication using NFC, a second wireless communicator that performs wireless communication and a display that displays an access point connection history based on information stored in a storage unit included in the information processing apparatus, the control method comprising:
controlling, in a case where the first wireless communicator acquires connection information from an NFC tag of an external apparatus, the second wireless communicator to connect to an access point indicated by acquired connection information, wherein the connection information is stored in the storage unit;
determining whether the acquired connection information is generated at random; and
deleting, from the storage unit, the acquired connection information in a case where transmission of the data has been completed and it is determined that the acquired connection information is generated at random;
wherein the deleting of the acquired connection information from the storage unit based on completion of the transmission of data is not performed, in a case where it is determined that the acquired connection information is not generated at random.
6. The control method for the information processing apparatus according to claim 5 ,
wherein the external apparatus is a printing apparatus and the data is a print job.