first use of libmbus
This commit is contained in:
parent
a13588f97f
commit
3285773212
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user