@@ -5,13 +5,27 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) , and this project adheres
6
6
to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
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 )
9
16
10
17
Breaking changes to following structs/methods/functions
11
18
12
19
* struct field ` modbus.Field.RegisterAddress ` was renamed to ` Address `
13
20
* struct ` modbus.RegisterRequest ` was renamed to ` BuilderRequest `
14
21
* 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 `
15
29
16
30
### Added
17
31
@@ -22,8 +36,7 @@ Breaking changes to following structs/methods/functions
22
36
* ` ReadDiscreteInputsTCP ` combines fields into TCP Read Discrete Inputs (FC2) requests
23
37
* ` ReadDiscreteInputsRTU ` combines fields into RTU Read Discrete Inputs (FC2) requests
24
38
25
-
26
- ## [ 0.2.0] - unreleased
39
+ ## [ 0.2.0] - 2024.02.04
27
40
28
41
### Added
29
42
0 commit comments