Search found 2 matches

by Delffiini
Wed Apr 19, 2023 7:47 am
Forum: ESP-IDF
Topic: Modbus slave byte ordering
Replies: 2
Views: 1170

Re: Modbus slave byte ordering

Hi,I cannot edit the esp-idf managed component directly. Is there any other way..?

Just mean the function :

Code: Select all

static esp_err_t mbc_serial_master_get_parameter(uint16_t cid, char* name, uint8_t* value_ptr, uint8_t *type)
by Delffiini
Fri Apr 14, 2023 6:14 am
Forum: ESP-IDF
Topic: Modbus slave byte ordering
Replies: 2
Views: 1170

Modbus slave byte ordering

Hi, I made ModbusTCP slave based on the esp-idf examples. It works but the floating point byte order is not understood by the connected Modbus master. I need to make an extra data array just for the Modbus data transfer. Is there any way just change the byte order in esp-idf Modbus library? This is ...