I need to catch the event of connecting and disconnecting a iPhone to an external camera. The connection is via wifi. Reachability library is not up to the task. I also tried the code above, but it doesn't work either.
The problem is that when the iPhone is connected via mobile data (or air mode is turned on) and simultaneously connect to the camera via wifi, none of the methods sends me any event. Tell me how to solve this problem
I figured it out! I implemented everything using the Reachability - https://github.com/ashleymills/Reachability.swift library, it was only necessary to specify the ip address of the camera.
swift
reachability = try? Reachability(hostname: currentCamera.ipAddress)
Post
Replies
Boosts
Views
Activity
I need to catch the event of connecting and disconnecting a iPhone to an external camera. The connection is via wifi. Reachability - https://github.com/ashleymills/Reachability.swift library is not up to the task. I also tried the code above, but it doesn't work either.
The problem is that when the iPhone is connected via mobile data (or air mode is turned on) and simultaneously connect to the camera via wifi, none of the methods sends me any event. Tell me how to solve this problem