A communication apparatus capable of communicating with an information processing apparatus, the communication apparatus comprising:
- a reception unit configured to receive a predetermined instruction;
- an output unit configured to output a predetermined two-dimensional code based on the received predetermined instruction;
- a control unit configured to, based on the received predetermined instruction, cause the communication apparatus to start an operation in a predetermined mode for receiving predetermined information for connecting to an external access point that is external to the information processing apparatus and the communication apparatus from the information processing apparatus having read the predetermined two-dimensional code;
- and
- a connection unit configured to, in a case that the predetermined information is received from the information processing apparatus having read the predetermined two-dimensional code, connect the external access point and the communication apparatus to each other based on the predetermined information,
- wherein the predetermined mode is a mode for receiving the predetermined information by a predetermined protocol from the information processing apparatus having read the predetermined two-dimensional code,
- wherein the communication apparatus is capable of operating in a specific mode, different from the predetermined mode, for receiving information for connecting to the external access point from the information processing apparatus by a specific protocol different from the predetermined protocol, and
- wherein the specific protocol is Simple Network Management Protocol (SNMP).