I want to use your library to send and receive a float type value.
For sending a I use the send_2byte_float() function that works great. It is being received by KNX without any problem.
Now I want to do the other way round. To receive a float type value. Do you have the code to transform the mantisa from the KNX DPT to a float value? When a float is received, the msg.data_len is 3, but the msg.data[0] is always zero. So all the 2byte float is in msg.data[2] and msg.data[1].
So my question is if you have the fragment of code to decode msg.data[2]and msg.data[1] into a float variable ?
Hi Nico,
How are you?
I want to use your library to send and receive a float type value.
For sending a I use the
send_2byte_float()
function that works great. It is being received by KNX without any problem.Now I want to do the other way round. To receive a float type value. Do you have the code to transform the mantisa from the KNX DPT to a float value? When a float is received, the
msg.data_len
is 3, but themsg.data[0]
is always zero. So all the 2byte float is inmsg.data[2]
andmsg.data[1]
.So my question is if you have the fragment of code to decode
msg.data[2]
andmsg.data[1]
into a float variable ?Thanks,
Adrian