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

Not connected to sensor tag #13

Open lewildfox opened 6 years ago

lewildfox commented 6 years ago

Hello,

I'm trying to connect sensor tag to watson iot using this library, but it stopped at this stage:

pi@raspberrypi:~/Downloads/iot-sensor-tag/publish $ node sensor-tag.js Device MAC Address: b827eb5e0e37 The device MAC address does not match the ID in the configuration file. Make sure the Sensor Tag is on! MQTT client connected to IBM IoT Cloud.

During "npm install" the below error shown:

bluetooth-hci-socket@0.5.1 install /home/pi/.node-red/node_modules/bluetooth-hci-socket node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:275:72: warning: ‘v8::Local v8::Function::NewInstance(int, v8::Local*) const’ is deprecated (declared at /home/pi/.node-gyp/8.10.0/include/node/v8.h:3846): Use maybe version [-Wdeprecated-declarations] Local error = errorConstructor->NewInstance(1, constructorArgs); ^ SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/binding.node make: Leaving directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build'

node-red-node-sensortag@0.0.19 postinstall /home/pi/.node-red/node_modules/node-red-node-sensortag node scripts/checkplatform.js pibt.sh

My environment:

Raspberry Pi 3B - raspbian jessie node -v v8.10.0 npm -v 3.10.10 nodejs -v v8.10.0

I'm wondering what is wrong. Any help would be appreciated. :)

Thank you! Adi