FIAP (IEEE1888) library
Dependents: Fetch_IEEE1888_Storage IEEE1888_MULTI_SENSOR_GW
Fork of FiapV2 by
Diff: fiap.h
- Revision:
- 11:db42339d6cce
- Parent:
- 10:b355957e01f4
- Child:
- 12:f4e59ab2bab0
--- a/fiap.h Thu Feb 21 16:43:59 2013 +0000 +++ b/fiap.h Fri Feb 22 05:00:50 2013 +0000 @@ -17,6 +17,9 @@ #define FIAP_UPLOAD_HTTPERR 3 // HTTP Server error (The response was not "200 OK") #define FIAP_UPLOAD_FIAPERR 4 // FIAP Server error +//if true, it uses FETCH instead of WRITE procedure. +#define USE_FETCH_PROCEDURE false + /** fiap_element *@param char* cid Point ID *@param char* value data @@ -73,13 +76,16 @@ private: char _fiap_storage[100]; - char _fiap_id_prefix[100]; + //char _fiap_id_prefix[100]; char _soap_header[256]; char _soap_footer[256]; - char _soap_action[100]; - void post_xml_initialize(void); - void fetch_xml_initialize(void); + char _soap_action[32]; + char _soap_text[2000]; + char _uuid[37]; + void xml_initialize(void); + void generateUUID(); char* HTTPStatusText(HTTPResult r); + void myprintf(char*); }; #endif