IoT Foundation Bluemix TI SensorTag CC2650STK

0 votes

So, I successfully have connected the SensorTag with the BLE SensorTag app on my Android phone and I can use the default Push to Cloud Quickstart setup to send data to IoT Foundation Quickstart. But I keep attempting to to connect to IoT Foundation as a registered device and fail.

My device registration IoT foundation:

Organization ID         abcdef   (<- not my real org on IoT Foundation)
Device Type             sensortag
Device ID               sensortag1
Authentication Method   token
Authentication Token    somecrypticcharacters

This is the BLE SensorTag app on my phone in Cloud Setup:

Cloud Service: IBM IoT Foundation
Username:      use-token-auth
Password:      somecrypticcharacters
Device id:     d:abcdef:sensortag:sensortag1
Broker add.:
Broker Port:   1883
Publish topic: iot-2/evt/sensors/fmt/json

On enabling Push to Cloud, this error gets thrown at me.

"Failed with error code: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference'

Can any tell me where I'm going wrong here?

Apr 15, 2019 by Upasana
• 8,620 points

1 answer to this question.

0 votes

Try the following:

client.connect(options, new IMqttActionListener() {....


client.connect(options,this.context, new IMqttActionListener() {...
  • compile and install the updated app.
answered Apr 15, 2019 by Shubham
• 13,480 points

Related Questions

0 votes
1 answer
0 votes
1 answer

CLI for Watson IBM IoT service in Bluemix

Programmatically register devices using bulk/devices operations.!/Bulk_Operations/post_bulk_devices_add Here's ...READ MORE

answered Nov 23, 2018 in IoT (Internet of Things) by DataKing99
• 8,240 points
0 votes
1 answer

I cannot retrieve data from historian in Bluemix Watson IoT Platform

You're partially right! Earlier this month, the "built-in" ...READ MORE

answered Jan 11, 2019 in IoT (Internet of Things) by Upasana
• 8,620 points
0 votes
1 answer

Python Code to retrieve data from Device to IBM Bluemix

You connect as a device -> import ibmiotf.device. ...READ MORE

answered Sep 18, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
0 votes
1 answer

Node-RED, IOT Foundation Out Node Not Sending Commands

A simple test to check if the ...READ MORE

answered Jul 19, 2018 in IoT (Internet of Things) by TejaswiniUL
• 140 points
0 votes
1 answer

The MQTT folder is missing in Bluemix IoT NodeJS code,

IoT-Workbench now uses new improved code generation ...READ MORE

answered Aug 8, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
0 votes
1 answer
+2 votes
3 answers

How do I deploy Scala PlayFramework Project to IBM Bluemix

It seems that they are more than ...READ MORE

answered Oct 18, 2018 in DevOps on Cloud by lina
• 8,220 points
0 votes
1 answer