Data Fields | |
uint8_t | max_client_num |
rt_mq_t | queue |
data_filter_t | data_filter |
data_service_msg_handler_t | msg_handler |
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
uint8_t data_service_config_tag::max_client_num |
maximum client number supported by the serivce
data_service_msg_handler_t data_service_config_tag::msg_handler |
service message handler
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);