I have based my app on the ant_io_demo example and I have one master and one slave communicating successfully.
In my application I can have several masters from time time time, each using a different device number. I find that when one master switches off and another switches on, the slave cannot see the new master. I can detect the loss of communications with the first master, but I have been unable to re-establish a connection with the new master. Attempts at calling ant_channel_init(), sd_ant_channel_open() etc gives fatal errors.
How do I reset my slave to a position where it is able to re-establish communications with a second master? Remember, I have used the ant_io_demo example code and am looking for a solution close to that.
As a supplementary question, how can a slave exchange messages with multiple masters?