armink / FreeModbus_Slave-Master-RTT-STM32

Add master mode to FreeModbus. | 在 FreeModbus 中添加主机模式
Other
1.6k stars 820 forks source link

How to read holding register from slave (the micro is in slave mode) #48

Open hasan700 opened 5 years ago

hasan700 commented 5 years ago

Hi. How are you? It’s me again!!! In slave mode implementation, I want to define 10 registers in the program, so master reads the registers. The registers are not constant, they are registers of ADC channels. For now, I want to define one constant register, and read it by master. I tried and wrote some codes, but didn’t work. After that, I think it’s easy to make it ten, and replace the constant register with registers of ADC. Many thanks….