Hi,
Thank you very much for your quick response.
As asked, I created a new program integrating your Starter Codes as it. The run result is unfortunatly negative - See Log0.txt.
Analyzing the Log0, I notice that there are timming problems : when m1 is trying to Discover Services, there in Device found event for m2 and the later tries to connect etc...
From this observation, I created my version which works as follows:
- I start by launching m1.Scan only.
- In Manager_DeviceFound event, I stop m1.Scan and launch m1.Connect
- In Manager_Connected event, if Sender is "m1" then I launch m2.Scan, if Sender is "m2" then I do nothing.
The run result of this version is ... VICTORY (see Log1.txt), ... BUT some time after, when I retest it the run result is as bad as from the beginning : m1 connection is always Ok but m2 connection is alway failed (see Log2.txt).
Please note that when the log "m2 - Trying to connect" appears, my Device 2 is connected quickly (my devices have a Led for Connection Monitoring) but it is disconnected some time later becaue the failure of the "Services Discovering" operation.
Do you have an idea ?
Attached is the export of my version in which your original codes are transformed into comments.
Regards.