title: Unable to connect TI SensorTag CC2650STK to IoT Foundation / Bluemix
body: <p>I can connect 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 fail when trying to connect to IoT Foundation as a registered device.</p>
  
  <p>I have registered the device on IoT foundation:</p>
  
  <pre><code>Organization ID         abcdef   (&lt;- not my real org on IoT Foundation)
  Device Type             sensortag
  Device ID               sensortag1
  Authentication Method   token
  Authentication Token    somecrypticcharacters
  </code></pre>
  
  <p>In the BLE SensorTag app on my phone in Cloud Setup:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>When I enable Push to Cloud I get a </p>
  
  <pre><code>"Failed with error code: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference'
  </code></pre>
  
  <p>What am I doing wrong here?</p>