How can i save persistant data with OPCUA

Hello, i have some data coming from the protocol OPCUA wich i receive on the RUT. I want to send these values to a online database , if i have wifi there is no problem, the RUT reads the values and sends them, the problem lies on the wifi, since if i do not have connection cant get the data.

I was able to find a file “opcua.db“ in the folder “/var/run/opcua_client“ wich saves the data that receives from the OPCUA protocol when it is unable to send it, but this file resets when the RUT restarts .

My question is , is there a way to make the opcua.db file save the data and reload it after being turned off and on, without losing any values?

Hello,

Currently, there is no option available to store the OPC UA database on external or persistent memory, unlike the Modbus client, which allows this through its global settings.

Feel free to reach out if you have any further questions.

Best regards,

Hello Martynas,

Thank you for the fast response, i was wondering if using Bash script i would be able to replicate said ability?

Best Regards

João Costa

Hello,

Apologies for the delay.

If your goal is simply to save the OPC UA data, a possible workaround would be to periodically forward it to a local computer or copy the opcua.db file to a persistent location (for example, /etc/opcua_backup/ or /root/opcua_data/) using a scheduled bash script.

As mentioned earlier, the OPC UA data cannot currently be stored directly in flash memory, so it won’t persist after a reboot by default. Therefore, it’s not possible to replicate this functionality without implementing some form of workaround.

Best regards,

This topic was automatically closed after 60 days. New replies are no longer allowed.