Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9874 Discussions

i have host my HIVEMQ broker up on the cloud and its using a Intel Edison board and a TI CC2650 SensorTag. how am i supposed to publish the TI CC2650 SensorTag reading into my node.js code inside my Intel Edison board and then those reading will be d

csin
Beginner
1,055 Views

i have host my HIVEMQ broker up on the cloud and its using a Intel Edison board and a TI CC2650 SensorTag.

how am i supposed to publish the TI CC2650 SensorTag reading into my node.js code inside my Intel Edison board and then those reading will be display to those who is subscribing it?

my node.js code:

var SensorTag = require('sensortag'); // sensortag library // listen for tags:SensorTag.discover(function(tag) {// when you disconnect from a tag, exit the program:tag.on('disconnect', function() {console.log('disconnected!');process.exit(0);}); function connectAndSetUpMe() { // attempt to connect to the tag<td class="blob-code blob-code-inner js-file-line" style="padding: 0 10px; font-family: Consolas, 'Liberation Mono', Menlo, Couri...
0 Kudos
1 Reply
idata
Community Manager
195 Views

Hi Chansinn,

Thank you for contacting us.

First, we want to apologize for the late reply.

About your issue, well we are not experienced with this sensor and cloud, but I found a lot of information that can be helpful for you, if you need more help about the SensorTag CC2650, you can check the user guide: http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide

Now, about using the SensorTag with the Intel Edison, there are some examples in this repository: https://github.com/burrsutter/ti_sensortag_node, so you can use them as reference.

(Check these links too: https://www.youtube.com/watch?v=NrFXfcFn5TQ , https://software.intel.com/en-us/java-for-bluetooth-le-apps)

Regarding the cloud HiveMQ, I think you need to use the library MQTT.js, I recommend you to visit this site: http://www.hivemq.com/blog/mqtt-client-library-mqtt-js

I hope you find this information useful.

Have a nice day.

Regards,

-Leonardo

Reply