User`s guide

i.LON SmartServer 2.0 Programming Tools User’s Guide 153
3. Click the header file. The header file view opens to the right of the C/C++ Projects view.
4. Insert the following include directives in the “includes go here.” section of the header file.
// Required include statement. Finds FPM license and performs
// node lock check.
#include "LicenseMgr.h"
// Define name translations for macros in MD5 digest if not
// already defined in file.
#define LICMGR_MD5Init <name>
#define LICMGR_MD5Update <name>
#define LICMGR_MD5Final <name>
#define LICMGR_MD5Transform <name>
#define LICMGR_MD5Encode <name>
#define LICMGR_MD5Decode <name>
// Optional include statement(but required if using MD5 or
// HMAC-MD5). Uses MD5 digest to generate a license key.
#include "LicMgrMd5.c"
// define name translation for macro in HMAC-MD5 digest if not
// defined in file.
#define LICMGR_hmac_md5 <name>
// Optional include statement(required if using HMAC-MD5).
// Uses HMAC-MD5 digest to generate a license key
#include "LicMgrHmacMd5.c"
Step 2: Declaring Data Variables
After you insert the include directives, you need to declare data variables in the routine that are used to
store the results of the Node Lock Check and the secret key assigned to the FPM. To declare the data
variables, follow these steps:
1. Under the FPM project folder in the C/C++ Projects view, click the source file (.cpp extension)
for your FPM application. The source file view opens to the right of the C/C++ Projects view.