I have an iOS/watchOS app that talks to an external device (a camera) on a proprietary tcp protocol via Network.framework.
With the latest version we have migrated communications to the watch so that the Watch talks to the camera directly (previously it did through the watch) - and I was hoping that we could get to a state where the iOS app is only required for configuration of the connection (logon info etc), which is much easier done on iOS.
So far everything works great - except that the iWatch looses Wifi connectivity as soon as the iPhone is out of range or joins another network.
I have configured the iWatch to join the cameras network - but still, as soon as the phone looses the network the connection is gone.
The idea really is to enable the user to work with the camera hands free with no need to use the phone.
The control center indicates that I am connected to Wifi, but Network.framework does not seem to connect.
Is there anything I need to configure on the tcp connection in Network.framework to have it talk to the device directly without checking the phone? Or is an independent connection of the iWatch to a network and tcp connection not possible (I thought with stand alone watch app this should work?)
As always - thanks for any hints or information!
Best,
Michael