mirror of
https://github.com/emqx/neuron.git
synced 2026-10-28 22:59:34 +08:00
Update adapter_loop to handle MSG_EVENT_UPDATE_LICENSE message
This commit is contained in:
@@ -923,6 +923,20 @@ static void adapter_loop(void *arg)
|
||||
break;
|
||||
}
|
||||
|
||||
case MSG_EVENT_UPDATE_LICENSE: {
|
||||
const neu_plugin_intf_funs_t *intf_funs = NULL;
|
||||
neu_request_t req = {};
|
||||
|
||||
intf_funs = adapter->plugin_module->intf_funs;
|
||||
req.req_id = adapter_get_req_id(adapter);
|
||||
req.req_type = NEU_REQRESP_UPDATE_LICENSE;
|
||||
req.sender_id = 0;
|
||||
req.buf_len = 0;
|
||||
req.buf = NULL;
|
||||
intf_funs->request(adapter->plugin, &req);
|
||||
break;
|
||||
}
|
||||
|
||||
case MSG_CMD_SUBSCRIBE_NODE: {
|
||||
subscribe_node_cmd_t *cmd_ptr;
|
||||
cmd_ptr = (subscribe_node_cmd_t *) msg_get_buf_ptr(pay_msg);
|
||||
|
||||
Reference in New Issue
Block a user