I started a new project with esp-idf v5.4 and esp-modbus v2.0.2. I am trying to create a tcp master and send commands to a unique slave device which has slave address 0x02.
I did the test before with a modbus client app and everything works OK, as you can see on the attached images. (IP: 192.168.3.4 ...
Search found 4 matches
- Fri Mar 14, 2025 12:19 pm
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8311
- Mon Feb 24, 2025 7:42 am
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8311
Re: mbc_master_start() can not connect to slaves
Hello, any other solution? Thank you
- Fri Feb 14, 2025 12:24 pm
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8311
Re: mbc_master_start() can not connect to slaves
Thank you for your response but that did not solve the problem. I tried the same code you posted and did not compile.
error: too many initializers for 'char* [1]'
};
If I put "char* slave_ip_address_table[2]" or even "char* slave_ip_address_table[]" it compiles but same output as the ...
error: too many initializers for 'char* [1]'
};
If I put "char* slave_ip_address_table[2]" or even "char* slave_ip_address_table[]" it compiles but same output as the ...
- Tue Feb 11, 2025 3:24 pm
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8311
mbc_master_start() can not connect to slaves
For some reasons I am working on ESP-IDF 4.4.5 and I'm trying to use esp-modbus to connect to some slaves. I did the connection with the ESP32 on serial master and it was all OK. Now I'm trying to connect the ESP32 (tcp master) with a slave simulator and a real slave device. The error that I am ...