Adapter Setup Functions

The ESP Server uses information management functions to complete the adapter implementation process.

These functions are used for both input and output adapters.
API Description
void* createAdapter(); Returns a unique handle that the ESP Server uses to make subsquent calls to the adapter. This is the first call the ESP Server makes when creating an adapter.
void* deleteAdapter(void* adapter); Deletes an adapter using the unique handle returned by the createAdapter API. This is the last call the ESP Server makes concerning a given adapter.
void setCallBackReference(void*adapter,void* connectionCallBackReference); Gives the adapter implementation a unique handle that corresponds to the connectionCallBackobject on the ESP Server side. Use this handle as a parameter when making callbacks to the ESP Server.
void setConnectionRowType(void* adapter,void* connectionRowType); Provides the adapter implementation with information related to schema.
void setConnectionParams(void* adapter, void* connectionParams); Provides the adapter implementation with information related to connection parameters.