API  2.3.0
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_carriots_device_t Struct Reference

Device structure. More...

#include <tsmart_carriots.h>

Data Fields

uint8_t sensor [PR_TSMART_CARRIOTS_DEVICE_SENSOR_SIZE]
 
uint16_t frequency_stream
 
uint16_t frequency_status
 
uint8_t time_zone [PR_TSMART_CARRIOTS_DEVICE_TIMEZ_SIZE]
 
uint8_t enabled
 

Detailed Description

Device structure.

Examples:
carriots_2g.c, and carriots_wifi.c.

Field Documentation

uint8_t enabled

Boolean. Valid values: 0 or 1

Examples:
carriots_2g.c, and carriots_wifi.c.
uint16_t frequency_status

Defines the time lapse (in minutes) in which a status stream must have been received

Examples:
carriots_2g.c, and carriots_wifi.c.
uint16_t frequency_stream

Defines the time lapse (in minutes) in which a data stream must have been received

Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t sensor[PR_TSMART_CARRIOTS_DEVICE_SENSOR_SIZE]

Sensor type. The maximum size for the sensor type is 13 bytes. Sensor types available in Carriots:

  • TSMART_CARRIOTS_ACCELEROMETER_SENSOR
  • TSMART_CARRIOTS_AIR_FLOW_SENSOR
  • TSMART_CARRIOTS_BEND_SENSOR
  • TSMART_CARRIOTS_BUTTON_SENSOR
  • TSMART_CARRIOTS_CAMERA_SENSOR
  • TSMART_CARRIOTS_COMPASS_SENSOR
  • TSMART_CARRIOTS_COMPUTER_SENSOR
  • TSMART_CARRIOTS_GPS_SENSOR
  • TSMART_CARRIOTS_GAS_SENSOR
  • TSMART_CARRIOTS_HUMIDITY_SENSOR
  • TSMART_CARRIOTS_INFRARED_SENSOR
  • TSMART_CARRIOTS_LIGHT_SENSOR
  • TSMART_CARRIOTS_MAGNETIC_SENSOR
  • TSMART_CARRIOTS_OTHER_SENSOR
  • TSMART_CARRIOTS_PIEZO_SENSOR
  • TSMART_CARRIOTS_RFIDREADER_SENSOR
  • TSMART_CARRIOTS_SOUND_SENSOR
  • TSMART_CARRIOTS_SWITCH_SENSOR
  • TSMART_CARRIOTS_TEMPERATURE_SENSOR
  • TSMART_CARRIOTS_WATERFLOW_SENSOR
  • TSMART_CARRIOTS_THERMOMETER_SENSOR
Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t time_zone[PR_TSMART_CARRIOTS_DEVICE_TIMEZ_SIZE]

Defines device time zone. The maximum size for the sensor type is 32 bytes

Examples:
carriots_2g.c, and carriots_wifi.c.