Say that I have two routers and one coordinator. On one router I have a button as an input configured as change detect that will send data to the coordinator connected to an arduino. With that button pushed, I must change the state of an output on the another router, that is, if it is high, must turn to low, and if it is low, must turn to high. The problem is that there is no AT command, I think, that invert the state of and output, just commands to set it high and to set low. With that in mind, at first I must read the state of that output to see if I must send a high or low command to invert it. How can I solve this problem?