Dear Cogniscenti,
I am trying to connect a Pi Zero with a RS485 CAN HAT to my Nibe SMO40.
I have installed the CAN related software on the Pi Zero but I have got stuck with the Openhab software.
I have created a directory under by home directory, created the file nibegw.c and copied the Openhab nibegw.c file into it.
But when I run the compilation program, nothing happens.
I then ran gcc -Wall -std=gnu99 -o nibegw nibegw.c and I get the following:
nibegw.c: In function ‘getTimeStamp’:
nibegw.c:205:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘__suseconds_t’ {aka ‘long int’} [-Wformat=]
205 | sprintf(buffer, "%d.%d.%d %d:%02d:%02d:%d",
| ~^
| |
| int
| %ld
......
210 | tm->tm_min, tm->tm_sec, tv.tv_usec
| ~~~~~~~~~~
| |
| __suseconds_t {aka long int}
What is the corrective action I need to take here please?
Thank you very much for your advice.