Skip to content

Commit 837f158

Browse files
committed
Deprecation of BField and related methods.
1 parent f883daa commit 837f158

File tree

6 files changed

+721
-636
lines changed

6 files changed

+721
-636
lines changed

CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.3.0] - unreleased
8+
## [0.3.0] - 2025.xx.xx
9+
10+
Alot of breaking changes. Biggest things:
11+
12+
* Introduced `Field` struct to be used instead of `modbus.BField`. `BField` and fluent interface is deprecated. When
13+
adding fields in bulk and dynamically the struct (more idiomatic) approach is more ergonomic than fluent API.
14+
* Added implementation of Poller in `poller` package. For example usage
15+
see [cmd/modbus-poller/main.go](cmd/modbus-poller/main.go)
916

1017
Breaking changes to following structs/methods/functions
1118

1219
* struct field `modbus.Field.RegisterAddress` was renamed to `Address`
1320
* struct `modbus.RegisterRequest` was renamed to `BuilderRequest`
1421
* method `BuilderRequest.ExtractFields()` signature changed
22+
* removed type `packet.LooksLikeType` and related consts
23+
* const `packet.DataTooShort`
24+
* const `packet.IsNotTPCPacket`
25+
* const `packet.LooksLikeTCPPacket`
26+
* const `packet.UnsupportedFunctionCode`
27+
* error `modbus.ErrClientNotConnected`: changed from `ClientError` to `*ClientError`
28+
* error `modbus.ErrPacketTooLong`: changed from `ClientError` to `*ClientError`
1529

1630
### Added
1731

@@ -22,8 +36,7 @@ Breaking changes to following structs/methods/functions
2236
* `ReadDiscreteInputsTCP` combines fields into TCP Read Discrete Inputs (FC2) requests
2337
* `ReadDiscreteInputsRTU` combines fields into RTU Read Discrete Inputs (FC2) requests
2438

25-
26-
## [0.2.0] - unreleased
39+
## [0.2.0] - 2024.02.04
2740

2841
### Added
2942

0 commit comments

Comments
 (0)