Page 30
FRDM-
K64F
Software Modifications
Reporting
Frequency: By default, the FRDM-K64F board uploads sensor measurements to
AT&T’s Flow environment every 5 seconds. You can adjust how often you want to do this by
editing the
SENSOR_UPDAT_INTERVAL_MS
value in the
config_me.h
header file.
The sensor measurements that are reported can be changed by altering the iSensorsToReport
parameter.
The default assignment for this is:
iSensorsToReport =
TEMP_HUMIDITY_ACCELEROMETER;
With this setting, the board reports readings from the HTS221 temperature & humidity sensor
and 3-axis accelerometer readings from the FXOS8700CQ motion sensor. These values are
sent to the HTTP IN /climate port in Flow with field names temp, humidity,
accelX
,
accelY
and
accelZ
.
Temperature is in degrees Fahrenheit. Humidity is a percentage (%). Acceleration is
measured in G’s (the gravitational constant) and is useful if you want to know the stationary
position of the board with regards to gravity or its acceleration when in motion.
As discussed in the document on adding External Sensors to the kit on
iSensorsToReport
variable can be changed
to report a different set of sensor readings to Flow.
After any source modifications, recompile the IoT Kit software and reprogram the board. After
the IoT Kit is powered up and connected to flow, you can view the new data under the Debug
tab as in the image above.
Содержание AT&T Cellular IoT Kit
Страница 10: ...Page 10 ...
Страница 26: ...Page 26 ...
Страница 34: ...Page 34 Click the Trigger tab to explore how Flow processes the trigger inputs and uses them for notifications ...