Added new function to generate XML with normalized values

(equivalent to mbus_frame_data_xml)
This commit is contained in:
Stefan Wahren
2012-05-06 23:00:59 +02:00
parent b479412ab1
commit d617accea5
2 changed files with 104 additions and 0 deletions

View File

@ -346,6 +346,24 @@ int mbus_vif_unit_normalize(int vif, double value, char **unit_out, double *valu
*/
int mbus_vib_unit_normalize(mbus_value_information_block *vib, double value, char **unit_out, double *value_out, char ** quantity_out);
/**
* Generate XML for normalized variable-length data
*
* @param data variable-length data
*
* @return string with XML
*/
char * mbus_data_variable_xml_normalized(mbus_data_variable *data);
/**
* Return a string containing an XML representation of the normalized M-BUS frame data.
*
* @param data M-Bus frame data
*
* @return string with XML
*/
char * mbus_frame_data_xml_normalized(mbus_frame_data *data);
/**
* Iterate over secondary addresses, send a probe package to all addresses matching
* the given addresses mask.