mbed Sensor node for Instrumented Booth over ETH.

Dependencies:   EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib

Fork of Trenton_Switch_LPC1768_ETH by Demo Team

node_cfg.h

Committer:
erigow01
Date:
2014-12-03
Revision:
27:6017a643f386
Parent:
26:4cac6b346e4f
Child:
28:908a6f58aa7f

File content as of revision 27:6017a643f386:

#ifndef NODE_CFG_H_
#define NODE_CFG_H_

/************** NODE PROFILE SELECTION ***********************/
#define     NODE_SENSOR_STATION         1       // use K64F platform. Base sensor platform. Includes Microphone, temperature.
#define     NODE_HEIGHT_STATION         0       // use K64F platform. This include door height sensor
#define     NODE_KIOSK_STATION          1       // use K64F platform. This includes kiosk presence sensor
#define     NODE_DOOR_TRIP_STATION      0       // use K64F platform. This includes door tripwire sensor
#define     NODE_PIR_STATION            0       // use K64F platform. This includes pir motion sensor


/*************** NODE PROFILE CONFIGURATION  *****************/


#define NODE_SHORT_ADDRESS                                    4
#define NODE_MAC_ADDRESS        {0,0,6,0x02,0x00,0x00,0x09,0x01}
#define NODE_NAME                       "mbed-sensor-station-eth"


#define ENDPOINT_TYPE       {"mbed-device"}
#define LIFE_TIME           {"600"}     //seconds, extra char needed to avoid truncation

// ****************************************************************************
// Ethernet Config...

// Ethernet configuration
/* Define this to enable DHCP, otherwise manual address configuration is used */
#define DHCP

/* Manual IP configurations, if DHCP not defined */
#define IP      "192.168.1.10"
#define MASK    "255.255.255.0"
#define GW      "10.45.0.1"

// ****************************************************************************

/************** REGISTRATION  PARAMETERS  ************************/
#define RD_UPDATE_PERIOD_MS    30000      // 30 seconds 

//#define NSP_IP_ADDRESS_BYTES      {0x20, 0x02, 0x0d, 0xb4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x02, 0x00, 0x01} //IPv6

#define NSP_IP_ADDRESS              "192.168.1.100" //IPv4
#define NSP_IP_ADDRESS_BYTES        {0xc0, 0xa8, 0x01, 0x64} //IPv4

#endif  // NODE_CFG_H_