Closed mudgalp closed 6 days ago
Anyone here to help???
I mean all you need to do is put the data into the register.
server_registers[TEMP_ADDRESS] = ((uint16_t*)(&Temp))[1];
server_registers[TEMP_ADDRESS+1] = ((uint16_t*)(&Temp))[0];
I mean all you need to do is put the data into the register.
server_registers[TEMP_ADDRESS] = ((uint16_t*)(&Temp))[1]; server_registers[TEMP_ADDRESS+1] = ((uint16_t*)(&Temp))[0];
Thank you for your response, but I already figured out how to do it.
Now if anyone working with this library and Requires some help, I can help him.
moreover, I have modified this library to use MAX485CSA ic in your project, which does not have an auto transmission feature. This IC requires a DE/RE pin to be pulled up and down at some specific point in the transmission. I have added some more lines of code to this library.
I'm trying to use this library in an ESP32 project in platformIO IDE but don't understand how to do it. I read the value of Temperature & humidity from a sensor and want to pass it to Two Input registers, so if any RTU client requests the device will respond. Here is my basic code :