思澈科技软件开发工具包  2.20
data_service_config_tag Struct Reference

Data Fields

uint8_t max_client_num
 
rt_mq_t queue
 
data_filter_t data_filter
 
data_service_msg_handler_t msg_handler
 

Field Documentation

◆ data_filter

data_filter_t data_service_config_tag::data_filter

filter which is called to check whether one message needs to be pushed to the client

◆ max_client_num

uint8_t data_service_config_tag::max_client_num

maximum client number supported by the serivce

◆ msg_handler

data_service_msg_handler_t data_service_config_tag::msg_handler

service message handler

◆ queue

rt_mq_t data_service_config_tag::queue

message queue used by the service,

If it's NULL, the service shares the system queue and thread. If it's not NULL, the message would be posted to this queue, so service should create its own thread and retrieve message from this queue. For simlicity the user created thread could use data_service_entry as thread entry and pass the queue as thread's parameter, such as rt_thread_init(&thread_handle, "test", data_service_entry, queue, thread_stack, sizeof(thread_stack), 25, 10);


The documentation for this struct was generated from the following file: