Report a potential or actual change in the state of a channel
Devices that have connected to a RemoteSign can subscribe to certain channels using the {CHSUB} command.
When subscribed to a channel, any potential changes in that channel are relayed to the subscribed device using the {CHSTATE} command. The current state will also be relayed upon subscribing.
Changes can be triggered by any connected device, or by scripts running locally on the RemoteSign ESP. This allows multiple devices stay synchronized with channel data, and obtain state data after connecting.
Syntax
{CHSTATE} command
- command - is a RemoteSign command that defines the current state of the channel. Typically the command is a copy of the command that caused the change.
- Monochrome lights
- Color Lights
- Signals
{CHSTATE){LM} 2 ␑ On
{CHSTATE){SIG} 4 ␑ 3
- Previously, {SIG} commands were broadcast to all connected devices when a signal changed. Signal changes are now only sent to subscribed devices using {CHSTATE}
- When a monochrome light channel is changed with {LM} TOGGLE, the change is reported to indicate the actual new state, i.e. on or off.