In OPC UA embedded stack, some libraries exist already, the task is to implement the callback functions to facilitate the server with data access capability..
For historical access, for instance, the historical data for a specific node (node_handle) is saved in a file, to read the historical data of that node, following callback functions are provided
UA_Status_t UAServer_Callback_File_Open( uint32_t node_handle, uint8_t mode, uint32_t* file_handle){
}
UASErver_Callback_File_Write(uint32_t node_handle,uint32_t file_handle, UA_Byte_String_t * data)
The question is, how to implement this? What is the format for the file, that is suggested? uint32_t file_handle
, does this mean, the file is like a array with the element of type uint32_t
In C, when I want to open a file. we use FILE * fopen( const char* file_name, const char * mode)
, the file is a binary file, but how this fopen
is implemented is dependent on the kernel system
Thank you in advance