XiR7S
Newbie
![Newbie level 1](/styles/images/ranks/alevel1.gif)
I need a great help. Hope anyone who is good in embeded systems can answer my question.
My project is titled OBD2_Emulators.
I have two stm32 nodes, each which has one ssd1306 and one CAN trancseiver module.
Except node one, it has a one DS18B20 temperature aside.
Now the first node should emulate OBD2_Vehicle and the second node should emulate the OBD2_Device_Scanner.
In my project I am simply required to send my DS18B20 temperature as an OBD2 ECT PID value format to the second node and receive back on the second node and display it on the ssd1306 OLED.
Now my problem is, how can I do that since the DS18B20 temperature is a float value.
I have asked ChatGpt and it says that I must use a map function to achieve this. Anyone can confirm of this in anyway?
My project is titled OBD2_Emulators.
I have two stm32 nodes, each which has one ssd1306 and one CAN trancseiver module.
Except node one, it has a one DS18B20 temperature aside.
Now the first node should emulate OBD2_Vehicle and the second node should emulate the OBD2_Device_Scanner.
In my project I am simply required to send my DS18B20 temperature as an OBD2 ECT PID value format to the second node and receive back on the second node and display it on the ssd1306 OLED.
Now my problem is, how can I do that since the DS18B20 temperature is a float value.
I have asked ChatGpt and it says that I must use a map function to achieve this. Anyone can confirm of this in anyway?