IEEE1888 GateWay sample that handles multiple sensors.

Dependencies:   EthernetInterface Fiap HTTPClientForFIAP NTPClient mbed-rtos mbed spxml

Fork of IEEE1888_TEMP_NODE by Satoru Yoshida

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #define NTP_SERVER   "ntp.jst.mfeed.ad.jp"
00002 //And you should define URL of FIAP storage in storage.txt
00003 //Format :
00004 // http://your.host.name/axis2/services/FIAPStorage
00005 //Example:
00006 // http://ec2-123-45-67-89.ap-northeast-1.compute.amazonaws.com/axis2/services/FIAPStorage
00007 // http://fiap-sandbox.gutp.ic.i.u-tokyo.ac.jp/axis2/services/FIAPStorage
00008 
00009 #define TIME_ZONE_CHAR    "+09:00"//in case of JST
00010 #define TIME_ZONE_SECONDS 32400   //in case of JST
00011 #define USB_PAUD_RATE     9600
00012 
00013 #define FIAP_DEBUG_MODE false
00014 #define USE_RJ45_LAMP   false
00015 #define RETRY_TIMES_ON_ERROR 5
00016 #define WAIT_NEXT_SEND       30 //interval time will be it +0 or +1 second as a result.
00017 
00018 #define P15_POINT_ID "http://mbed.org/users/strysd/lm35dz"
00019 #define P15_CONSTANT 0
00020 #define P15_COEFFICIENT 330.0
00021 #define P15_PREC "%.1f"