Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read config.json file #134

Open
rahul12130 opened this issue May 31, 2023 · 1 comment
Open

Read config.json file #134

rahul12130 opened this issue May 31, 2023 · 1 comment

Comments

@rahul12130
Copy link

rahul12130 commented May 31, 2023

Hi Team

I updated the .c file and i want read the config.json file and I'm getting the log_debug inside the get function but I'm not able to get config.json data can you please help here.
and also i want print the log_debug also it is not printing on server side get callback is not getting on get
MicrosoftTeams-image (14)

@vlvassilev
Copy link
Owner

vlvassilev commented Jun 1, 2023

So if I understand your problem you are using the https://github.com/vlvassilev/yuma123/blob/master/example-modules/helloworld/helloworld.yang module but you want to add a get-callback returning a dynamic value instead of the constant "Hello world!" value in the example implementation? Is this correct? I think starting from the working implementation and making this change manually will be easier to get started - using the val_init_virtual instead of val_init_from_template function. I do not use the auto generation tools and do not maintain them. Even if they work generating a brute force callback for every leaf is unnecessary IMO.

So what do you want the callback to do and what is the purpose of the "config.json"? Do you want to display this file as the /helloworld-state/message leaf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants