first use of libmbus
This commit is contained in:
@ -25,10 +25,19 @@ void my_errorHandler() {
|
||||
}
|
||||
|
||||
void helloMeterbus(void *handle) {
|
||||
static t_mbusDevice device = {
|
||||
.deviceName = "Total Power",
|
||||
.address = 80,
|
||||
.consideredField = {
|
||||
{ .label = "energy", .index = 0 },
|
||||
{ .label = "power", .index = 17 }
|
||||
}
|
||||
};
|
||||
|
||||
static uint32_t cnt = 0;
|
||||
logMsg("*** NEW REQUEST %d ***", cnt);
|
||||
cnt++;
|
||||
mbusCommRequest(0x5b, 80);
|
||||
mbusCommRequest(&device);
|
||||
// static char msg[] = "Hello";
|
||||
// HAL_UART_Transmit_IT(&mbusUart, &msg, strlen(msg));
|
||||
|
||||
|
Reference in New Issue
Block a user