A general programmatic interface-to-network messaging adapter exposes a
suitable object integration interface or application programming
interface to applications on a controller device and sends network data
messages to invoke services or query status of a controlled device. The
adapter maps application calls to the interface into network data
messages according to service protocols of the controlled device. The
general adapter provides the interface suitable to any specific service
of a controlled device based on a data description of the interface, and
converts the application calls to network data messages based on a data
description of a protocol and format for network data messages to
interact with the specific service. Once the interface/messaging
description is obtained, applications on the controller device can
programmatically interact with the adapter, and the adapter then handles
appropriate message exchanges with the service of the controlled device.
The general adapter allows controller device applications to be written
using object-oriented programming, while avoiding code download.