IBM-Cloud / iot-sensor-tag

Sample code for connecting to a TI Sensor Tag and using that data in apps deployed to Bluemix.
Apache License 2.0
33 stars 45 forks source link

serson-tag.js started but sensor can't connect to it #2

Closed eguo closed 9 years ago

eguo commented 9 years ago

I was able to successfully start the sensor=tag.js in the publish folder. But click of sensor tag side button doesn't connect to it. This is running on a debian linux running on a rooted android phone. Several BLE supported app on the android phone are able to connect to the sensor tag.

I have tried two sensor-tags.

Here's the output in the terminal:

root@localhost:/opt/konectera/gitwork/iot-sensor-tag/publish# node sensor-tag.js Device MAC Address: d222be535b30 Make sure the Sensor Tag is on! MQTT client connected to IBM IoT Cloud.

Can someone help me out? Need to setup a demo for my client.

Eddy

ryanjbaxter commented 9 years ago

@eguo I doubt this is a problem with the code, and probably more with the hardware it is running on or the Node.js Sensor Tag library. Although I can't rule out a problem with the code completely. I have no idea if the Node.js Sensor Tag library has been tested on a phone. You might want to write a simple Node.js app using just that library open an issue for the Node.js Sensor Tag library.