> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-controller/troubleshooting/p2p-outputs-change-after-outage.md).

# P2P outputs switch on and off after a unit comes back

When polling is configured, if one end of a P2P pair (SMSC2) is not contactable (e.g. turned off) the other end (SMSC1) keeps sending status messages. Say during this time the I/O changes on SMSC1.

Once SMSC2 is powered up/in contact again, there will end up being a back log of messages, some with different input values, so as these messages are processed the outputs on SMSC2 may change states several times. The lowest number message index is always read first (in theory the latest message), so if while processing older message you receive a new message (with different I/O values), the output values may switch between states to suit each message.

## Check these in order

1. **It is recommended that comms fail indication should NOT be assigned to an output in P2P mode** because it can trigger additional messages which cause delays when processing I/O.
2. **Avoid rapidly changing inputs.** Multiple simultaneous or near simultaneous input changes can cause critical race conditions with SMS messages and result in unexpected behaviour at the destination device due to the nature of SMS message delivery.

See [Controller-to-controller texting and P2P mode](https://help.qtech.co.nz/qtech/cellular-remote-control/sms-controller/controller-to-controller.md).
