Hello,
Is it possible to change the device number between two nodes ?
For example, in a first time the master send to slave data which contain the next device number, then the slave save the number and close / unasigned /reset to create new communication with the new device number.
So my question is how to pass from communication 1 to communication 2 with new device number ?
In my case, here is my code:
while (1)
{
readData()
if(data = ...) then
close channel
unasigned channel
reset
init (with new device number)
while(1)
{
writeData(...)
}
}
Thanks