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

Trigger configuration structure. More...

#include <tsmart_xv.h>

Data Fields

tsmart_xv_trigger_type_t trigger_type
 
tsmart_xv_ipv4_format_tip
 
uint16_t port
 
tsmart_xv_value_t threshold_value
 
uint8_t trigger_id [PR_TSMART_XV_TRIGGER_SIZE]
 
uint32_t feed_id
 
uint8_t * datastream_id
 

Detailed Description

Trigger configuration structure.

Examples:
xv_2g.c, and xv_wifi.c.

Field Documentation

uint8_t* datastream_id

Datastream identification

Examples:
xv_2g.c, and xv_wifi.c.
uint32_t feed_id

Feed identification

Examples:
xv_2g.c, and xv_wifi.c.

URL where the user will receive the notifications

Examples:
xv_2g.c, and xv_wifi.c.
uint16_t port

Port to receive alarms

Examples:
xv_2g.c, and xv_wifi.c.
tsmart_xv_value_t threshold_value

Threshold value for the trigger

Examples:
xv_2g.c, and xv_wifi.c.
uint8_t trigger_id[PR_TSMART_XV_TRIGGER_SIZE]

Trigger identification provided by Xively. The maximum size for the trigger identification is 8 bytes.

Trigger type. It shall be one of the following values:

  • TSMART_XV_TRIGGER_GT
  • TSMART_XV_TRIGGER_GTE
  • TSMART_XV_TRIGGER_LT
  • TSMART_XV_TRIGGER_LTE
  • TSMART_XV_TRIGGER_EQ
  • TSMART_XV_TRIGGER_CHANGE
  • TSMART_XV_TRIGGER_FROZEN
  • TSMART_XV_TRIGGER_LIVE
Examples:
xv_2g.c, and xv_wifi.c.