The communication apparatus obtains through a first protocol a status of a
first device connected to the communication apparatus via a network, and
receives a message of a second protocol between the first device and a
second device that are connected to each other via the network. Then, the
communication apparatus generates and transmits a command of the second
protocol to the second device, in accordance with the statuses of the
first device obtained before and after the reception of the message.