Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Feb 9, 2025
1 parent 141569c commit ce04319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Addresses without scheme (i.e. `localhost:5020`) are considered as TCP addresses
b := modbus.NewRequestBuilder("tcp://localhost:5020", 1)

requests, _ := b.
AddField(modbus.Field{Name: "test_do", Type: modbus.FieldTypeUint16, Address: 18}).
AddField(modbus.Field{Name: "test_do", Type: modbus.FieldTypeUint16, Address: 18}).
AddField(modbus.Field{Name: "alarm_do_1", Type: modbus.FieldTypeInt64, Address: 19}).
ReadHoldingRegistersTCP() // split added fields into multiple requests with suitable quantity size

Expand Down

0 comments on commit ce04319

Please sign in to comment.