HelloAccessory三星示例应用程序无法连接(提供商和消费者)

时间:2015-06-04 19:13:56

标签: android samsung-mobile tizen tizen-wearable-sdk

如何将提供商应用程序连接到消费者应用程序?我使用三星S4和Tizen仿真器成功连接了它。但现在我使用S4和Gear 2本身。我使用eclipse和使用齿轮管理器安装的wgt运行应用程序。

  

js / main.js(44):错误[undefined] msg [undefined]   js / main.js(124):exception [TypeError] msg ['null'不是对象(评估'SASocket.setDataReceiveListener')]   js / main.js(44):err [undefined] msg [undefined]

1 个答案:

答案 0 :(得分:0)

Looks like some error in the main.js. From what I see in the HelloAccessoryProvider this seems to be the issue. console.log("exception [" + err.name + "] msg[" + err.message + "]");

Somewhere you are either missing a quote that is making the string 'msg' being treated like a variable.