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.:   abcdef.messaging.internetofthings.ibmcloud.com
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 by Upasana
• 7,680 points
8 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Try the following:

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

to

client.connect(options,this.context, new IMqttActionListener() {...
  • compile and install the updated app.
answered Apr 15 by Shubham
• 12,270 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. https://docs.internetofthings.ibmcloud.com/swagger/v0002.html#!/Bulk_Operations/post_bulk_devices_add Here's ...READ MORE

answered Nov 23, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
37 views
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 in IoT (Internet of Things) by Upasana
• 7,680 points
37 views
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,260 points
39 views
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
32 views
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,260 points
37 views
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,100 points
77 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.