nsp specific components for the NSP version of the impact endpoint
Dependents: mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp
Diff: NSPDefinitions.h
- Revision:
- 13:6998d9c2410e
- Parent:
- 12:b10cd82bf206
- Child:
- 24:b62fec3ff73c
diff -r b10cd82bf206 -r 6998d9c2410e NSPDefinitions.h --- a/NSPDefinitions.h Tue Apr 01 21:22:25 2014 +0000 +++ b/NSPDefinitions.h Wed Apr 02 02:31:51 2014 +0000 @@ -23,39 +23,41 @@ #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED NSP Endpoint v1.0" // NSP Configuration -#define NSP_ADDRESS "192.168.1.220" // Target NSP Service - (default) -#define NSP_PORT 5683 // Target NSP Service Port Number +#define NSP_ADDRESS "192.168.1.220" // Target NSP Service - (default) +#define NSP_PORT 5683 // Target NSP Service Port Number // Enable/Disable NSP Get and GetPut operations -#define NSP_ENABLE_GET true // true - enable, false - disable -#define NSP_ENABLE_GETPUT true // true - enable, false - disable +#define NSP_ENABLE_GET true // true - enable, false - disable +#define NSP_ENABLE_GETPUT true // true - enable, false - disable // Preference File Configuration -#define PREFERENCES_FILE "/local/nsp.cfg" // preferences file for endpoint +#define PREFERENCES_FILE "/local/nsp.cfg" // preferences file for endpoint // Personality Name Configuration #ifdef LIGHT_PERSONALITY - #define PERSONALITY_NAME "light-nsp-%d" // name of each personality (i.e. light) in this endpoint - #define NSP_NODE_TYPE LIGHT_TYPE_STRING // Node type - #define PERSONALITY_TYPE LIGHT_TYPE_STRING // type of personality + #define PERSONALITY_NAME "light-nsp-%d" // name of each personality (i.e. light) in this endpoint + #define NSP_NODE_TYPE LIGHT_TYPE_STRING // Node type + #define PERSONALITY_TYPE LIGHT_TYPE_STRING // type of personality + #define NSP_ENDPOINT_TYPE "MBED NSP Light Node" // mfg type #endif #ifdef COPCAR_PERSONALITY - #define PERSONALITY_NAME "copcar-nsp-%d" // name of each personality (i.e. copcar) in this endpoint - #define NSP_NODE_TYPE "CopCar" // Node type - #define PERSONALITY_TYPE "Cop Car" // type of personality + #define PERSONALITY_NAME "copcar-nsp-%d" // name of each personality (i.e. copcar) in this endpoint + #define NSP_NODE_TYPE "CopCar" // Node type + #define PERSONALITY_TYPE "Cop Car" // type of personality + #define NSP_ENDPOINT_TYPE "MBED NSP Cop Car" // mfg type #endif // NSP Configuration -#define NSP_NODE_LIFETIME "1500" // Node lifetime (seconds) - 25 minutes -#define RD_UPDATE_PERIOD 600 // The number of seconds between NSP (re)registration messages - 10 minutes +#define NSP_NODE_LIFETIME "1500" // Node lifetime (seconds) - 25 minutes +#define RD_UPDATE_PERIOD 600 // The number of seconds between NSP (re)registration messages - 10 minutes // NSP Registration Configuration -#define NSP_RESOURCES_OBSERVABLE 1 // 1 - all resources will be registered as observable, 0 - not observable -#define NSP_RESOURCES_REGISTERED 1 // 1 - all resources will be registered, 0 - not registered +#define NSP_RESOURCES_OBSERVABLE 1 // 1 - all resources will be registered as observable, 0 - not observable +#define NSP_RESOURCES_REGISTERED 1 // 1 - all resources will be registered, 0 - not registered // Transport Configuration -#define NUM_TRANSPORTS 2 // Transports used -#define NSP_TRANSPORT 0 // NSP Transport index -#define HTTP_TRANSPORT 1 // HTTP Transport index +#define NUM_TRANSPORTS 2 // Transports used +#define NSP_TRANSPORT 0 // NSP Transport index +#define HTTP_TRANSPORT 1 // HTTP Transport index #endif // _NSP_DEFINITIONS_H_ \ No newline at end of file