Question: Get node values from sources like sensors
Hi,
I have been looking at samples/ClientServer/zephyr/toolkit_test_server
and I am really struggling to get started with S2OPC. I tried finding some documentation but it seems like there is only sample files, if there is any documentation I would be glad if you could refer me to that.
What I want to do is I want to run the OCP UA server on a microcontroller running Zephyr (which works already with toolkit_test_server) and attach sensors to that. I then want to have nodes on my server which resemble those sensors and always have their current value as an integer.
The problem is that when I looked at the Address space file in toolkit_test_server it seems like the variables get initialized but there is no function to basically update them.
How would I do something like that? I think it would be good to have a looping function that sees if the sensor data has changed. Then I would just need to know how I can update the values in the address space. Could I put such a loop in main
?
I hope that someone has the time to help me, I don't really know how to get started properly without documentation.
Thank you.