aqhome-react: show values sent.
This commit is contained in:
@@ -96,7 +96,7 @@ void _cbInputData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, const AQHREACT_DATAO
|
|||||||
msgOut=_mkSetDataMsgString(brokerEndpoint, sValueName, dataObject);
|
msgOut=_mkSetDataMsgString(brokerEndpoint, sValueName, dataObject);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DBG_INFO(NULL, "Unhandled data type (%d)", AQHREACT_DataObject_GetDataType(dataObject));
|
DBG_ERROR(NULL, "Unhandled data type (%d)", AQHREACT_DataObject_GetDataType(dataObject));
|
||||||
msgOut=NULL;
|
msgOut=NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,15 @@ void _cbInputData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, const AQHREACT_DATAO
|
|||||||
GWEN_Buffer_free(dbuf);
|
GWEN_Buffer_free(dbuf);
|
||||||
AQH_Message_free(msgOut);
|
AQH_Message_free(msgOut);
|
||||||
#else
|
#else
|
||||||
DBG_INFO(NULL, "Sending data for value \"%s\"", sValueName);
|
GWEN_BUFFER *dbuf;
|
||||||
|
|
||||||
|
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
|
||||||
|
GWEN_Buffer_AppendArgs(dbuf, "Send: \"%s\" = ", sValueName);
|
||||||
|
AQHREACT_DataObject_Dump(dataObject, dbuf, 0);
|
||||||
|
DBG_ERROR(NULL, "%s\n", GWEN_Buffer_GetStart(dbuf));
|
||||||
|
GWEN_Buffer_free(dbuf);
|
||||||
|
|
||||||
|
// DBG_ERROR(NULL, "Sending data for value \"%s\"", sValueName);
|
||||||
AQH_Endpoint_AddMsgOut(brokerEndpoint, msgOut);
|
AQH_Endpoint_AddMsgOut(brokerEndpoint, msgOut);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ void _cbInputData(AQHREACT_UNIT *unit, GWEN_UNUSED AQHREACT_PORT *port, const AQ
|
|||||||
result=AQHREACT_Unit_GetParamValueString(unit, AQHOMEREACT_UNIT_VALUESET_PARAM_VALUE_ZERO, NULL);
|
result=AQHREACT_Unit_GetParamValueString(unit, AQHOMEREACT_UNIT_VALUESET_PARAM_VALUE_ZERO, NULL);
|
||||||
|
|
||||||
if (result && *result) {
|
if (result && *result) {
|
||||||
DBG_DEBUG(NULL, "Sending \"%s\" to output", result);
|
DBG_INFO(NULL, "Sending \"%s\" to output", result);
|
||||||
AQHREACT_Unit_OutputStringData(unit, outputPort, result);
|
AQHREACT_Unit_OutputStringData(unit, outputPort, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user