Hi,
I want to use either the PC or WiFi connection, whichever is currently available, but in order to determine this (to then be able to determine if it is actually connected) it looks like I need to poll ConnectionManager.DetailedStatus to see what connections are available.
More specifically, the problem is this:
I can enumerate the list of available connections by calling:
ConnectionDetailedStatus[ aDetailedStatus = ConnectionManager.DetailedStatus;
When the device is not connected to a computer, the PC connenction doesn't appear in this list. Similarly, when the device is connected to a computer, the WiFi connection doesn't appear in this list.
Is there any way of receiving a notification when the items in this list change, as there is for receiving a notification when the status of a specific connection changes?
Example:
Imagine the device is connected to a WiFi network and it then loses connectivity. Sometime later, the user plugs the device into a PC. How does the application know the device is now connected to a PC without polling (and therefore refreshing) this list?
Regards,
Richard