Skip to content

Commit

Permalink
Release v0.13.0 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde authored Jun 24, 2024
1 parent a1feab1 commit 13fcb83
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ repos:
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: [--ignore-words=.codespellignore]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.28.2
rev: 0.28.5
hooks:
- id: check-github-actions
- id: check-github-workflows
Expand All @@ -57,7 +57,7 @@ repos:
- markdown
# https://reuse.software
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.2
rev: v3.1.0a1
hooks:
- id: reuse
- repo: https://github.com/doublify/pre-commit-rust
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Changelog

## v0.13.0 (Unreleased)
## v0.13.0 (2024-06-23)

- Fix: Do not panic on mismatching request/response function codes.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[package]
name = "tokio-modbus"
description = "Tokio-based Modbus library"
version = "0.12.0"
version = "0.13.0"
authors = [
"slowtec GmbH <[email protected]>",
"Markus Kohlhase <[email protected]>",
Expand Down
20 changes: 10 additions & 10 deletions src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,51 +277,51 @@ impl<'a> SlaveRequest<'a> {
/// server implementation and those coils should be should be ignored.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Response {
/// Response to a ReadCoils request
/// Response to a `ReadCoils` request
/// The parameter contains the coil values that have been read
/// See also the note above regarding the vector length
ReadCoils(Vec<Coil>),

/// Response to a ReadDiscreteInputs request
/// Response to a `ReadDiscreteInputs` request
/// The parameter contains the discrete input values that have been read
/// See also the note above regarding the vector length
ReadDiscreteInputs(Vec<Coil>),

/// Response to a WriteSingleCoil request
/// Response to a `WriteSingleCoil` request
/// The first parameter contains the address of the coil that has been written to
/// The second parameter contains the value that has been written to the coil the given address
WriteSingleCoil(Address, Coil),

/// Response to a WriteMultipleCoils request
/// Response to a `WriteMultipleCoils` request
/// The first parameter contains the address at the start of the range that has been written to
/// The second parameter contains the amount of values that have been written
WriteMultipleCoils(Address, Quantity),

/// Response to a ReadInputRegisters request
/// Response to a `ReadInputRegisters` request
/// The parameter contains the register values that have been read
ReadInputRegisters(Vec<Word>),

/// Response to a ReadHoldingRegisters request
/// Response to a `ReadHoldingRegisters` request
/// The parameter contains the register values that have been read
ReadHoldingRegisters(Vec<Word>),

/// Response to a WriteSingleRegister request
/// Response to a `WriteSingleRegister` request
/// The first parameter contains the address of the register that has been written to
/// The second parameter contains the value that has been written to the register at the given address
WriteSingleRegister(Address, Word),

/// Response to a WriteMultipleRegisters request
/// Response to a `WriteMultipleRegisters` request
/// The first parameter contains the address at the start of the register range that has been written to
/// The second parameter contains the amount of register that have been written
WriteMultipleRegisters(Address, Quantity),

/// Response MaskWriteRegister
/// Response `MaskWriteRegister`
/// The first parameter is the address of the holding register.
/// The second parameter is the AND mask.
/// The third parameter is the OR mask.
MaskWriteRegister(Address, Word, Word),

/// Response to a ReadWriteMultipleRegisters request
/// Response to a `ReadWriteMultipleRegisters` request
/// The parameter contains the register values that have been read as part of the read instruction
ReadWriteMultipleRegisters(Vec<Word>),

Expand Down

0 comments on commit 13fcb83

Please sign in to comment.