@@ -61,7 +61,7 @@ uint8_t invokeId;
6161
6262// Constants
6363// =======================================
64- const std::string APPLICATION_VERSION = " 0.0.6 " ; // See CHANGELOG.md for a full list of changes.
64+ const std::string APPLICATION_VERSION = " 0.0.7 " ; // See CHANGELOG.md for a full list of changes.
6565const uint32_t MAX_XML_RENDER_BUFFER_LENGTH = 1024 * 20 ;
6666
6767// Settings
@@ -509,7 +509,7 @@ uint16_t CallbackReceiveMessage(uint8_t* message, const uint16_t maxMessageLengt
509509
510510 // Process the message as XML
511511 static char xmlRenderBuffer[MAX_XML_RENDER_BUFFER_LENGTH];
512- if (fpDecodeAsXML ((char *)message, bytesRead, xmlRenderBuffer, MAX_XML_RENDER_BUFFER_LENGTH) > 0 ) {
512+ if (fpDecodeAsXML ((char *)message, bytesRead, xmlRenderBuffer, MAX_XML_RENDER_BUFFER_LENGTH, CASBACnetStackExampleConstants::NETWORK_TYPE_IP ) > 0 ) {
513513 std::cout << xmlRenderBuffer << std::endl << std::endl;
514514 memset (xmlRenderBuffer, 0 , MAX_XML_RENDER_BUFFER_LENGTH);
515515
@@ -568,7 +568,7 @@ uint16_t CallbackSendMessage(const uint8_t* message, const uint16_t messageLengt
568568
569569 // Get the XML rendered version of the just sent message
570570 static char xmlRenderBuffer[MAX_XML_RENDER_BUFFER_LENGTH];
571- if (fpDecodeAsXML ((char *)message, messageLength, xmlRenderBuffer, MAX_XML_RENDER_BUFFER_LENGTH) > 0 ) {
571+ if (fpDecodeAsXML ((char *)message, messageLength, xmlRenderBuffer, MAX_XML_RENDER_BUFFER_LENGTH, networkType ) > 0 ) {
572572 std::cout << xmlRenderBuffer << std::endl << std::endl;
573573 memset (xmlRenderBuffer, 0 , MAX_XML_RENDER_BUFFER_LENGTH);
574574 }
0 commit comments