A computer program product having a computer readable medium having computer program logic recorded thereon for implementing communication between two devices, comprising:
- means for determining information to be transmitted by a first device;
- means for determining whether a mode of communication to be used between the first device and a second device is a connection-mode or a connectionless-mode of communication by analyzing a content of the information to be transmitted;
- means for transmitting the information by the connection-mode of communication from the first device to the second device, when the means for determining the mode of communication has determined that the connection-mode of communication is to be used;
- and
- means for transmitting the information by the connectionless-mode of communication from the first device to the second device, when the means for determining the mode of communication has determined that the connectionless-mode of communication is to be used,
- wherein:
- the means for determining the mode of communication to be used comprises means for determining whether the mode of communication to be used is the connection-mode or the connectionless-mode of communication by analyzing the content of the information to be transmitted which is based on an event which occurred in the first device and was monitored by sensors within the first device,
- the sensors in the first device sense events having a first priority and events having a second priority which is lower than the first priority,
- the means for determining the mode of communication to be used comprises means for determining the connection-mode of communication is to be used when the first priority event is sensed and means for determining the connectionless-mode of communication is to be used when the second priority event is sensed,
- the sensing of the first priority event comprises sensing a problem in the monitored device, and
- the sensing of the second priority event comprises sensing usual conditions in the monitored device which are transmitted in a regularly generated report.