Open Jarvenhuaijin opened 1 year ago
It would seem ly_ctx_load_module(*context, "demo-mac", NULL, NULL)
fails to load the module, I guess you are not even checking for errors. If you have not set up the search directory correctly, use lys_parse_path()
instead.
My server got its returned ly_error
type is correctly loaded into the module, now I want to know how the client custom rpc send instead of through ietf standards, is using the nc_rpc_act_generic
function?
Yes, create the RPC using libyang and then send it by calling nc_rpc_act_generic()
.
I created a new yang file based on the work of others, and compiled it according to the sample server and client
The following is the rpc reply that handles the model on the server side.
I have tried to execute the above callback no matter what the client sends, but the terminal shows the following error, and I exactly executed this sentence
How can I make a custom rpc request in my client and correctly progress it in my server.