Insta360Develop / CameraSDK-iOS

iOS SDK to control Insta360 cameras.
33 stars 5 forks source link

Insta360 One R fails to connect over WiFi when USB charging #3

Open nstansbury opened 3 years ago

nstansbury commented 3 years ago

XCode 12.2 Firmware v1.2.18 Insta360 One R 1" Mod

When the Insta360 One R is charging via a USB C cable it fails to connect via WiFi, it gives no errors as to why, nor does it return a connected state for any of the INSCameraDeviceType values

Watching INSCameraManager.socket().observe(...) dispatches 2 state change notifications when attempting to connect via WiFi when charging on USB C, both values are nil before it finally dispatches NSNotificationName(_rawValue: kINSCameraDidDisconnectNotification) to the default notification centre despite never having connected initially.

Additionally, during the first stateChange notification, INSCameraManager.currentCamera.cameraType announces itself as an "Insta360 Nano S" followed by nil on the next notification.

Additionally, it is not possible to ever connect via the INSCameraManager.usbManager over a Lightning/USB-C interface despite changing the http://localhost:9099 origin as per the SDK documentation.