Flip&Click: Getting Started
This page will guide you through using the Flip&Click and its associated SDK.
Setting up your environment
You will need:
After installing this board package if you plug the Flip N Click into the USB port you should be able to Navigate to Tools / Board you should have Arduino SAM Boards listed.
If you move your pointer over this menu item a sub menu offers two Arduino Due options, select the Native USB Port option
Now that the Board has been selected, we need to select the Port. Navigate to Tools/Port, the IDE will list the detected com/serial ports
Thingstream Arduino SDK
Once this has been imported the Thingstream examples will be available to flash and run.
Examples and what they do…..
(these are explained in greater detail in the SDK documentation – these can be found in ~ thingstream-client-Arduino-library-BLDXXXX-vx.xxx/example/doc/index.html)
The Flip & Click may require a minor change to the build recipes in order to link against the pre-built Thingstream SDK client.
Editing the platform.txt file will require a reboot of the Arduino IDE for the changes to take effect, after which the flip and Click examples should compile without issue.
The Thingstream_basic_publish example is a good place to start. Before uploading the example, open the Serial Monitor
When the upload has completed you will be presented with a menu in the Serial Monitor. It is a good idea to reset the Flip & Click at this stage using the reset button, The menu will load again enabling you to select the Click Modem and the Slot into which it has been plugged after which the example will begin execution.
In addition to the examples that come as standard with the Thingstream SDK there is also an Air Quality Sensor example available. This example demonstrates adding a sensor to the Flip and Click, obtaining a reading, converting that reading into data and publishing that data to Thingstream in JSON format.
An updated version of the Air Quality example that is compatible with v2.25 and above of the Arduino SDK is available here.