언어 설정

Menu
Sites
Language
Tizen bluetooth webapp onSocketError

http://oneshottenkill.tistory.com/83

Here is tizen bluetooth webapp zip file link. Could you try this code on your tizen phone??

var onSocketError = function(err){

console.log(err);
/*alert(err.name);*/
alert('소켓에러 발생');
}
 
I met socketError... on main.js
The webapp can find bluetooth devices but can not connect with the HC-06 device.
When I connected android phone and HC-06. It worked well. Between PC(serial monitor) and android phone communicated. I mean HC-06 and arduino source codes have no problem. 
 
 
 

Responses

3 댓글
Armaan-Ul- Islam

Please Share the Error which connectToServiceByUUID() function is throwing to onSocketError().

You May Run the Project : 'Debug As > Tizen Web Application' to check the Error Message on Console or Just Simply use alert.

var onSocketError = function(err){
    console.log(err.message);
    console.log(err);

    alert(err.Message);
    alert(err.name);
    alert('소켓에러 발생');
}

 

명훈 심

I solved the problem. Thank you.

Armaan-Ul- Islam

You're welcome. Good to Know.

In addition, You may share what the error was and how did you debug & resolve the issue on this post, That may facilitate developers stuck on the same scenario.