emelianov / modbus-esp8266

Most complete Modbus library for Arduino. A library that allows your Arduino board to communicate via Modbus protocol, acting as a master, slave or both. Supports network transport (Modbus TCP) and Serial line/RS-485 (Modbus RTU). Supports Modbus TCP Security for ESP8266/ESP32.
Other
534 stars 190 forks source link

Possible to send float datatype? #336

Closed bvtvusn closed 6 months ago

bvtvusn commented 9 months ago

Hi, is there a simple way to send and receive float values stored inside holding registers? The software on my computer expects float values on the arduino slave. Right now, I am using reinterpret cast and bitmasks to convert the float values to uint16 before sending it over modbus.

emelianov commented 7 months ago

158