Setup a TCP socket connection between a host computer and Samsung Gear 3 device
Setup a TCP socket connection between a host computer and Samsung Gear 3 device
BY 01 Oct 2018Native Application Development
Hi,
I’m building a simple application to stream some sensor data directly to the computer from the Gear 3 watch. I’ve connected both devices to the same wifi network. So I’ve implemented a server socket in the laptop and client in the watch. But the problem I’m having is, the connection cannot be established.
I used the privilege: tizen.org/privilege/internet
But I’m not sure this is the correct one to use. And my socket client code is this (fairly simple C++ socket client code)
Setup a TCP socket connection between a host computer and Samsung Gear 3 device
Hi,
I’m building a simple application to stream some sensor data directly to the computer from the Gear 3 watch. I’ve connected both devices to the same wifi network. So I’ve implemented a server socket in the laptop and client in the watch. But the problem I’m having is, the connection cannot be established.
I used the privilege: tizen.org/privilege/internet
But I’m not sure this is the correct one to use. And my socket client code is this (fairly simple C++ socket client code)
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’; color: #4e9072} span.s1 {color: #931a68} span.s2 {color: #793d93} span.s3 {color: #0326cc} span.s4 {color: #3933ff} span.s5 {color: #000000} span.s6 {color: #006141} span.Apple-tab-span {white-space:pre}
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’; color: #006141} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’; color: #3933ff} span.s1 {color: #931a68} span.s2 {color: #000000} span.s3 {color: #006141}
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’; color: #3933ff} span.s1 {color: #931a68} span.s2 {color: #000000}
But the problem is, with
method, I’m always getting -1.
Can anyone suggest me a solution for this. Or, is there any method I can directly send data to the laptop?
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px ‘Eco Sans Mono’}
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio