Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot read the data after sending an HTTP request. on use lan8720. #375

Open
liuyufan1 opened this issue Nov 30, 2024 · 1 comment
Open

Comments

@liuyufan1
Copy link

It does not work with the HTTPClient library (when using the Lan8720). Every time I send an HTTP request, Modbus disconnects. Even if I call mb.connect(remote); again, I cannot read the data.

@liuyufan1
Copy link
Author

// modbus conn code
while (!mb.isConnected(remote)) {
mb.connect(remote);
Serial.println("modbus reconn");
if(reconnTime++ > 10){
return res;
}
delay(2000);
}
can't run mb.readHreg(xxx); . after http.PUT(payload);
can run mb.readHreg(xxx); when i comment out http.PUT(payload);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant