how could i send float by usart or rs485 which send data by byte?
usart or rs485 send the data to master one byte a time?
how about the float data ,such as 1.23
should i set a structure? is there some example for structure data for modbus communication? that example in ide menu is very simple and the intrucduction of register of modbus is poor.
Modbus is just an example of what you can do with the camera. It’s a user contributed library. It’s assumed you have pretty good knowledge of what you are doing.
If you want to send a float you’d use the python struct module which allows you to pack and unpack values into byte arrays: struct — Interpret bytes as packed binary data — Python 3.11.4 documentation
roger that ,thank u
the more example of modbus is helpful indeed。
hope openmv5 have more
Hi, it’s not like something I even have equipment for. That was a user added example.