A non-transitory storage medium storing a plurality of instructions executable by a computer of an image recording apparatus, the image recording apparatus comprising a recording device configured to record an image on a recording medium based on image data;
- a storage configured to store apparatus-specific information about the image recording apparatus;
- a first communication device configured to perform first wireless communication that is established when a distance between a sender device and a receiver device is equal to or less than a communicable distance;
- and a second communication device configured to perform second wireless communication that is established based on device-specific information about a sender device and a receiver device and that is greater in communication speed than the first wireless communication,
- the plurality of instructions, when executed by the computer, causing the image recording apparatus to:
- control the first communication device to perform the first wireless communication;
- control the second communication device to perform the second wireless communication;
- when the image recording apparatus has received device-specific information about a mobile terminal that communicates with the image recording apparatus, determine whether the image recording apparatus is to communicate with the mobile terminal through the second wireless communication;
- when the image recording apparatus has determined that the image recording apparatus is to communicate with the mobile terminal through the second wireless communication, transmit the apparatus-specific information about the image recording apparatus to the mobile terminal through the first wireless communication and after transmission of the apparatus-specific information about the image recording apparatus to the mobile terminal, receive object image data from the mobile terminal through the second wireless communication and control the recording device to record an image based on the object image data received from the mobile terminal;
- and
- when the image recording apparatus has determined that the image recording apparatus is not to communicate with the mobile terminal through the second wireless communication, transmit, to the mobile terminal through the first wireless communication, non-communication information indicating that the image recording apparatus is not to communicate with the mobile terminal through the second wireless communication and after transmission of the non-communication information to the mobile terminal, receive the object image data from the server through one of the second wireless communication and alternative communication that differs from each of the first wireless communication and the second wireless communication and control the recording device to record an image based on the object image data received from the server.