FIAP (IEEE1888) library
Dependents: Fetch_IEEE1888_Storage IEEE1888_MULTI_SENSOR_GW
Fork of FiapV2 by
Diff: fiap.cpp
- Revision:
- 5:f0b636449aa3
- Parent:
- 4:edbcc1833b58
- Child:
- 6:52e95ea60ec1
--- a/fiap.cpp Mon Aug 20 12:52:50 2012 +0000 +++ b/fiap.cpp Wed Aug 22 00:04:32 2012 +0000 @@ -89,6 +89,11 @@ if (debug_mode)printf("post.start \n\r"); HTTPResult r = http.postXML(_fiap_storage,"http://soap.fiap.org/query",InData,&stream); if (debug_mode) printf("post.end \n\r"); + if (debug_mode){ + printf("****\n\r"); + printf(rstr); + printf("\n\r****\n\r"); + } if(!r) { if (debug_mode)printf("Success \n"); } else { @@ -255,7 +260,9 @@ SP_XmlNodeList * points; if (strlen(rstr)>0) { if (debug_mode)printf("\n\r data Get Ok\n\r"); + SP_XmlDomParser parser; + // if (debug_mode)printf("stream readlen = %d \n\r",stream.readLen()); // outBuffer[stream.readLen()]=0; if (debug_mode)printf("check0\n\r"); @@ -307,7 +314,7 @@ { HTTPClient http; int i; - char str[800]; + char rstr[800]; char requestBuffer[50]; post_xml_initialize(); strcpy(_soap_text,_soap_header); @@ -334,10 +341,15 @@ // http.setRequestHeader("SOAPAction","\"http://soap.fiap.org/data\""); // InData=new HTTPText(); HTTPText InData(_soap_text); - HTTPText OutData(str,800); + HTTPText OutData(rstr,800); HTTPResult r = http.postXML(_fiap_storage,"http://soap.fiap.org/data",InData,&OutData); if(!r) { if (debug_mode)printf("Success \n"); + if (debug_mode){ + printf("****\n\r"); + printf(rstr); + printf("\n\r****\n\r"); + } } else { if (r==HTTP_PROCESSING) { if (debug_mode)printf("Processing \n");