This part will walk you through publishing a property from a gateway or a Telit module to a thing defined in the deviceWISE Cloud.

Publish data from a thing

  1. Select which thing you would like to use for the remainder of this guide's steps. Record its thing key.

  2. For the selected thing, publish a property called "temp" with a value of 72.
    1. If you using a gateway, you can do this by creating a simple On-Demand trigger that publishes this value.  
      1. Create the trigger similar to what you see below:

      2. Select the Save button to save the cloud trigger definition..
      3. Select your new trigger and select the Start button at the bottom of the trigger list view to start the trigger.
      4. Verify the trigger is "Started" and "Loaded".  If it is "Started" and "Unloaded" check that the project is also started (folder icon in the navigation menu should be green).
      5. Execute the trigger by right-clicking on it in the Trigger List view and selecting Fire Trigger.
      6. Refresh the view and verify a success count of 1.
    2. If you are using a Telit module, you can publish the property using the following AT commands:
      ## Publish a property called "temp" with a value of 72.
      AT#DWSEND=0,property.publish,key,temp,value,72
      #DWSEND: 3
      OK
      ## Wait for a #DWRING notification to indicate we have a reply to our API call.
      #DWRING: 1,3,2
       
      ## Execute AT#DWRCV command to check the reply, note the "3" matches the return from the #DWSEND command above.
      ## The "0" (second parameter in the response) indicates a success.
      AT#DWRCV=3
      OK
      #DWDATA: 3,0,2,OK
  3. Verify that the property value was published to the selected thing from the thing's details page:

You are ready for Part 2 - Defining your cloud trigger

Continue with Cloud triggers Part 2 - Defining your cloud trigger