first use of libmbus

This commit is contained in:
Wolfgang Hottgenroth 2020-11-03 10:30:53 +01:00
parent a13588f97f
commit 3285773212
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -55,8 +55,8 @@ static t_mbusCommHandle mbusCommHandle = { .state = MBCS_IDLE, .retryCnt = 0, .c
static void parseAndPrintFrame(t_longframe *frame) {
mbus_frame reply;
memset(&reply, 0, sizeof(reply));
//mbus_parse(&reply, buf, len);
reply.start1 = frame->start1;
reply.length1 = frame->length1;
@ -74,10 +74,11 @@ static void parseAndPrintFrame(t_longframe *frame) {
int r = mbus_frame_verify(&reply);
logMsg("papf verify: %d", r);
mbus_frame_data frame_data;
memset(&frame_data, 0, sizeof(frame_data));
// memset(&frame_data, 0, sizeof(frame_data));
// mbus_frame_data_parse(&reply, &frame_data);
// mbus_frame_print(&reply);
mbus_frame_data_parse(&reply, &frame_data);
mbus_frame_print(&reply);
}