Data Acquisition Framework
API for Tags Programming
|
Typedefs | |
typedef struct tag_ | tag |
Tag instance. | |
typedef void(* | on_tag )(tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time) |
Subscribe to callback function. More... | |
Functions | |
tag * | tag_new () |
Create a tag. More... | |
void | tag_delete (tag *self) |
Delete a tag instance. More... | |
int | tag_publish (tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time) |
Publish a tag. More... | |
int | tag_subscribe (tag *self, const char *equipment_name, const char *tag_name) |
Subscribe to a tag. More... | |
int | tag_unsubscribe (tag *self, const char *equipment_name, const char *tag_name) |
Unsubscribe from a tag. More... | |
int | tag_subscribe_callback (tag *self, on_tag) |
Set the subscribe-callback function. More... | |
typedef void(* on_tag)(tag *self,const char *equipment_name,const char *tag_name,value_t *value,value_type_t value_type,const char *unit,const char *time) |
Subscribe to callback function.
void tag_delete | ( | tag * | self | ) |
tag* tag_new | ( | ) |
int tag_publish | ( | tag * | self, |
const char * | equipment_name, | ||
const char * | tag_name, | ||
value_t * | value, | ||
value_type_t | value_type, | ||
const char * | unit, | ||
const char * | time | ||
) |
Publish a tag.
[in] | self | tag instance |
[in] | equipment_name | Equipment Name |
[in] | tag_name | Tag Name |
[in] | value | Value |
[in] | value_type | Value Type |
[in] | unit | Unit |
[in] | time | Timestamp |
int tag_subscribe | ( | tag * | self, |
const char * | equipment_name, | ||
const char * | tag_name | ||
) |
Subscribe to a tag.
[in] | self | tag instance |
[in] | equipment_name | Equipment Name |
[in] | tag_name | Tag Name |
Set the subscribe-callback function.
[in] | self | Tag instance |
int tag_unsubscribe | ( | tag * | self, |
const char * | equipment_name, | ||
const char * | tag_name | ||
) |
Unsubscribe from a tag.
[in] | self | tag instance |
[in] | equipment_name | Equipment Name |
[in] | tag_name | Tag Name |