historizing backend : any way to save to a persistent database e.g. mySQL

81 views
Skip to first unread message

Jacky Bek

unread,
Feb 2, 2021, 9:23:05 PM2/2/21
to open62541
HistorizingSetting.historizingBackend = UA_HistoryDataBackend_Memory(22, 200);

This is the example given in github.  The data is stored in memory.
If i want to send the information to a persistent database e.g. mySQL database, is it supported?

Thanks.

Jacky

Juan Gonzalez Burgos

unread,
Feb 3, 2021, 3:30:03 AM2/3/21
to Jacky Bek, open62541
Jacky,

The historizing backend provdes an API that you can use to implement connectivity with your preferred database, but you have to implement it yourself.

I have gone through it and created a higher level API for Qt C++ and implemented sqlite support. Maybe it is helpful for you:


Best,

--
You received this message because you are subscribed to the Google Groups "open62541" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open62541+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open62541/c434ec21-117e-4c3e-bdf2-78058e839036n%40googlegroups.com.

Jacky Bek

unread,
Feb 14, 2021, 11:49:17 PM2/14/21
to open62541
Thanks.
I have successfully implemented the codes to write to MySQL database using MonitoredItems callback.

Reply all
Reply to author
Forward
0 new messages