Use the log_init_resource method to initialize a resource bundle.
Call this method after calling the log_open method but before calling log_rsrc_message or log_rsrc_message_force.
Syntax
extern uint16_t log_init_resource( log_rb_id resource_id, const char * resourceName );
Parameters
- resource_id
-
The unique resource identifier. The resource ID must be greater than or equal to 1000.
- const char * resourceName
-
The base resource name of the resource bundle. When searching for a resource key, the method searches for the base name with the language and country codes appended. For example, it first searches for myresourcebundle_en_US.properties. If no such file exists, it searches the base name plus the language element. For example, myresourcebundle_en.properties. If no such file exists, it searches the base name only. For example, myresourcebundle.properties.
Returns
uint16_t error_code(an error code) or ERROR_NONE (value 0).