Can't establish a network connection when Watch is tethered to a Phone over Bluetooth

Hey Everyone,

The problem I am encountering is related to making an outgoing network connection via HTTPS over a Bluetooth connection between a watch app and a phone connecting via LTE to the cell network.

The code running on the watch creates an HTTPS connection easily when the watch is connected directly to Wifi, however, as soon as Wifi drops and a Bluetooth connection to a phone takes over, the connection cannot be established.

From what I have read in the docs, it looks like we have to treat the Bluetooth connection as an HTTP proxy that will tunnel the HTTPS connection to our target server. Is this correct, or is there another way to establish a network connection across the Bluetooth tether? I’m using the MbedTLS library for the network connection and it doesn’t directly support using a proxy, so that’s why I am asking.



If your app wants to receive/send http/https data packets when the watch is paired with mobile phone, you can check web proxy.
Here you will find the guideline-

Thanks, yeah, I did find that tutorial. Samsung support confirms that when tethered to a phone using Bluetooth, one has to use a web proxy (which is provided by the Wearable tethering app on the phone).

In I found this Note: “To handle HTTP and HTTPS requests in a proxy environment, get the proxy address using the Connection Manager and then set the proxy address using the Connection Profile API (in mobile and wearable applications). For libcurl, you can use the CURLOPT_PROXY option.”

So, it seems I need to create a special connection profile for bluetooth tether, then get/set the proxy in the profile before using it to connect to the network. This is probably a lot easier than writing the proxy code myself, so that’s the way I will go. There does not seem to be a tutorial about creating new connection profiles, but this one does provide sample code about accessing the default profile, so it will serve as a good starting point:

On a side note, a workaround is to establish a Wifi hotspot on the phone, and connect to the closed Wifi network of the phone from the watch. This allows the web traffic from the watch to use the cellular connection of the phone for Internet. It unfortunately uses more power than Bluetooth, but it will work without any extra coding on the app.

It turns out that I had the same problem, I have been trying to solve it for days and there was no way. Luckily I found this post in addition to the help of this website and I was able to solve it. They gave me one this Christmas and I have to admit that it’s wonderful, too bad I didn’t have it much earlier. porno gratis