title: IBMIOTF/BlueMix Publish Command Syntax
body: <p>I am attempting to assemble a small proof of concept system on IBM's Bluemix/Internet of Things. Currently this comprises of a Raspberry Pi feeding events up to the cloudbased app, which currently stores those events away, and periodically attempts to send down a command, using the following code block:</p>
  
  <pre><code>def sendCmd(command, payload, device="raspberrypi" ):
      deviceId = #Fixed value
      global cmdCount
      client.publishCommand("raspberrypi", deviceId, str(command), "json", payload)
      print "Sending '%s' cmd, payload '%s' to device %s" % (command, payload, deviceId)
      cmdCount = cmdCount + 1
  </code></pre>
  
  <p>As far as the documentation is concerned this appears to be the correct syntax, as described by the <a href="https://docs.internetofthings.ibmcloud.com/libraries/python_cli_for_apps.html#/publishing-commands-to-devices" rel="nofollow">documentation</a> :</p>
  
  <pre><code>   client.connect()
     commandData={'rebootDelay' : 50}
     client.publishCommand(myDeviceType, myDeviceId, "reboot", "json", myData)
  </code></pre>
  
  <p>No exceptions are thrown in this block of code, however the device is not receiving any commands; and the cloud foundry log is not throwing any errors. Is there a subtle point about the syntax I am missing?</p>