AirconsoleMgr cannot scanForDevices twice
Posted: Wed Apr 08, 2015 7:01 am
Hi,
We're using Airconsole SDK v1.43 for iOS. We have it working pretty well, but have a couple issues/questions.
We select an available device (from perhaps many available, each connected to its own Airconsole2) from a table view whose controller instantiates an AirconsoleMgr. When devices are detected, their names are used to populate the table. When a device is selected from the table, we create an AirconsoleSession from the associated device, call -stopScanning on the AirconsoleMgr, and pop the controller.
The AirconsoleMgr object is kept around, in the controller, as the controller is re-used if need be. However, when we call -stopScanning, we get a -deviceRemoved callback for each device previously detected. Is that supposed to happen, and what does it mean?
Interesting, the device selected, to which we have an AirconsoleSession object attached, is still able to be communicated with.
Now, if we go back to the table view, and call -scanForDevices again, no devices are detected. Is that a bug?
Or, is there no need to keep the AirconsoleMgr around for the lifetime of any AirconsoleSession objects created? Put another way, each time we present our table of available devices to select, should we be creating a new AirconsoleMgr?
Thanks!
-Mark
We're using Airconsole SDK v1.43 for iOS. We have it working pretty well, but have a couple issues/questions.
We select an available device (from perhaps many available, each connected to its own Airconsole2) from a table view whose controller instantiates an AirconsoleMgr. When devices are detected, their names are used to populate the table. When a device is selected from the table, we create an AirconsoleSession from the associated device, call -stopScanning on the AirconsoleMgr, and pop the controller.
The AirconsoleMgr object is kept around, in the controller, as the controller is re-used if need be. However, when we call -stopScanning, we get a -deviceRemoved callback for each device previously detected. Is that supposed to happen, and what does it mean?
Interesting, the device selected, to which we have an AirconsoleSession object attached, is still able to be communicated with.
Now, if we go back to the table view, and call -scanForDevices again, no devices are detected. Is that a bug?
Or, is there no need to keep the AirconsoleMgr around for the lifetime of any AirconsoleSession objects created? Put another way, each time we present our table of available devices to select, should we be creating a new AirconsoleMgr?
Thanks!
-Mark