set_c9_addr

Description

Sets the controller network address for a controller.

Signature

set_c9_addr(self, new_addr: Union[int, str], broadcast: bool = False)

Parameters

new_addr: Union[int, str]

The controller's new address. Either passed as an int [1, 255] or as a single ASCII character str of length 1 (e.g., 'B') that is then converted to the corresponding ASCII integer value.


broadcast: bool, optional

If True, this command will not be addressed to a given controller address. Instead, it will broadcast to any controller on the network. This is useful for setting the address of the controller when its current address is unknown. In this case, it should be the only controller physically on the network to avoid assigning the same address to multiple controllers.