主权项 |
1. A communication apparatus comprising:
a wireless interface; a processor; and a memory comprising a setting area for storing setting information which is to be used by the communication apparatus and a connection history area for storing wireless information for establishing a wireless connection in a case where the wireless connection via the wireless interface is established, wherein the memory stores computer-readable instructions therein, and the computer-readable instructions, when executed by the processor, cause the communication apparatus to execute:
causing the communication apparatus to operate in one of a plurality of operation modes including a first operation mode and a second operation mode different from the first operation mode, the first operation mode being for receiving the setting information which is to be used by the communication apparatus from a terminal apparatus so as to store the setting information in the setting area;establishing a first wireless connection with the terminal apparatus via the wireless interface by using first wireless information under a state where the communication apparatus operates in the first operation mode;receiving the setting information by using the first wireless connection so as to store the setting information in the setting area, in a case where the first wireless connection is established;establishing a second wireless connection with the terminal apparatus via the wireless interface by using second wireless information different from the first wireless information under a state where the communication apparatus operates in the second operation mode;storing the second wireless information in the connection history area in a case where the second wireless connection is established, wherein the first wireless information is not stored in the connection history area even when the first wireless connection is established; andre-establishing the second wireless connection with the terminal apparatus by using the second wireless information stored in the connection history area in a case where a wireless connection with the terminal apparatus via the wireless interface is to be re-established under a state where the communication apparatus operates in the second operation mode after the second wireless connection has been disconnected. |