The Temboo service has moved away from Arduino support. The service access in this older guide will no longer work.

Now that you've tested the Choreo successfully, scroll down to find the Code section of the page. When you're in IoT Mode and you run a Choreo, Temboo automatically generates code that can be used to make the same API call from an Arduino sketch. Copy the code, and paste it into a new sketch in the Arduino IDE.

In order to run this sketch on your Arduino, it needs to be configured with an appropriate TembooAccount.h header file that contains your Temboo account information and WiFi shield setup information. To create the header file, make a new tab in the Arduino IDE, and name it TembooAccount.h.

On the AppendRow Choreo page beneath the sketch code that you previously copied and pasted into the Arduino IDE, you’ll find another block of generated code containing a set of #define statements. This is your header file. Copy the contents of the header into the TembooAccount.h tab in your Arduino IDE.

Next, we’ll set up an Output Filter to parse the response from FedEx. The Output Filter will filter out the parts of the Choreo response that we aren’t interested in so that only the element that we care about—whether or not the package has been delivered—will be returned to the board. This will make the response more manageable. In your Arduino sketch, right before

// Run the Choreo; when results are available, print them to serial;

add the following line of code:

TrackByNumberChoreo.addOutputFilter(“delivered”, “/SOAP-ENV:Body/CompletedTrackDetails/TrackDetails/StatusDetail/Location/Residential”, “Response”)

That will filter your output so that the only response returned to your Arduino will be True if the package has been delivered or False if it has not. If you want to adjust your Output Filter to look for something else, you can read more about how to do that here.

This guide was first published on Feb 24, 2016. It was last updated on Mar 08, 2024.

This page (Parse Your Output) was last updated on Mar 08, 2024.

Text editor powered by tinymce.