We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/slowtec/tokio-modbus/blob/main/examples/rtu-server.rs
impl tokio_modbus::server::Service for Service { type Request = SlaveRequest<'static>; type Future = future::Ready<Result<Response, Exception>>; fn call(&self, req: Self::Request) -> Self::Future { match req.request { Request::ReadInputRegisters(_addr, cnt) => { let mut registers = vec![0; cnt.into()]; registers[2] = 0x77; future::ready(Ok(Response::ReadInputRegisters(registers))) } Request::ReadHoldingRegisters(_, _) => { future::ready(Err(Exception::IllegalDataAddress)) } _ => unimplemented!(), } } }
It doesn't seem to get the full byte message in this example
The text was updated successfully, but these errors were encountered:
Is this a question or is this a bug report? Please provide a working, reproducible example.
Sorry, something went wrong.
Hi, want to use for logging full messages to the database
No branches or pull requests
https://github.com/slowtec/tokio-modbus/blob/main/examples/rtu-server.rs
It doesn't seem to get the full byte message in this example
The text was updated successfully, but these errors were encountered: