IDL API
You can create a custom driver for the SmartServer to provide support for additional protocols not built into the standard SmartServer software. To develop a custom driver, you implement your driver-specific code in C or C++ using the GNU C++ compiler (g++) and link your driver with the IAP Driver Library (IDL) that is included with the SmartServer. IDL is a C library that implements the interface to IAP/MQ that is required for all drivers. It is a dynamic library (.SO) that you link into your custom driver process. Your custom driver process is called IDI, which stands for IDL driver instance. IDL includes over 30 functions. Every custom driver must include the following functions:
- Init Functions
- Device Create Functions
- Device Delete Functions
- Device Provision Functions
- Device Deprovision Functions
- Datapoint Read Functions
- Datapoint Write Functions
This API Reference section describes all the functions exposed by the IDL in alphabetical order:
- IDL API Index
- Change of Value (CoV) Functions
- Conf File
- Custom Error Function
- Datapoint Read Functions
- Datapoint Write Functions
- Debug Print Function
- Device Create Functions
- Device Delete Functions
- Device Deprovision Functions
- Device Discovery Functions
- Device Provision Functions
- Device Replace Functions
- Error Codes
- Get Pointer Function
- Init Functions