first use of libmbus
This commit is contained in:
@ -391,9 +391,18 @@ void mbusCommRxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
}
|
||||
|
||||
e_mbusCommRequestResult mbusCommRequest(t_mbusDevice *mbusDevice) {
|
||||
static uint32_t cnt = 0;
|
||||
e_mbusCommRequestResult res = MBCRR_BUSY;
|
||||
|
||||
if (mbusCommHandle.state == MBCS_IDLE) {
|
||||
logMsg("");
|
||||
logMsg("*** NEW REQUEST %s R:%d F:%d C:%d ***",
|
||||
mbusDevice->deviceName,
|
||||
mbusDevice->requests,
|
||||
mbusDevice->failures,
|
||||
cnt);
|
||||
cnt++;
|
||||
|
||||
mbusCommHandle.state = MBCS_SEND;
|
||||
mbusCommHandle.retryCnt = 0;
|
||||
mbusCommHandle.cmd = MBUS_QUERY_CMD;
|
||||
|
Reference in New Issue
Block a user