Skip to content

Add broadcast write support (slave address 0)#213

Merged
rquackenbush merged 1 commit into
NModbus:masterfrom
Fananos:feature/broadcast-write
Apr 16, 2026
Merged

Add broadcast write support (slave address 0)#213
rquackenbush merged 1 commit into
NModbus:masterfrom
Fananos:feature/broadcast-write

Conversation

@Fananos

@Fananos Fananos commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Implement Modbus broadcast write per the Modbus Application Protocol specification. Broadcast messages use slave address 0 and are processed by all slaves on the network without sending a response.

New API:

  • IModbusMaster.BroadcastWriteSingleRegister(registerAddress, value)
  • IModbusMaster.BroadcastWriteSingleRegisterAsync(registerAddress, value)
  • IModbusTransport.BroadcastWrite(message)

The transport-level BroadcastWrite acquires the sync lock, writes the message, and returns without reading a response.

Implement Modbus broadcast write per the Modbus Application Protocol
specification. Broadcast messages use slave address 0 and are processed
by all slaves on the network without sending a response.

New API:
- IModbusMaster.BroadcastWriteSingleRegister(registerAddress, value)
- IModbusMaster.BroadcastWriteSingleRegisterAsync(registerAddress, value)
- IModbusTransport.BroadcastWrite(message)

The transport-level BroadcastWrite acquires the sync lock, writes the
message, and returns without reading a response.
@rquackenbush rquackenbush merged commit d96e770 into NModbus:master Apr 16, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants