123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #include "ua_config_standard.h"
- #include "ua_log_stdout.h"
- #include "ua_network_tcp.h"
- #include "ua_accesscontrol_default.h"
- const UA_EXPORT UA_ConnectionConfig UA_ConnectionConfig_standard = {
- 0,
- 65535,
- 65535,
- 0,
- 0
- };
- #define MANUFACTURER_NAME "open62541"
- #define PRODUCT_NAME "open62541 OPC UA Server"
- #define PRODUCT_URI "http://open62541.org"
- #define APPLICATION_NAME "open62541-based OPC UA Application"
- #define APPLICATION_URI "urn:unconfigured:application"
- #define UA_STRING_STATIC(s) {sizeof(s)-1, (UA_Byte*)s}
- #define UA_STRING_STATIC_NULL {0, NULL}
- #define STRINGIFY(arg) #arg
- #define VERSION(MAJOR, MINOR, PATCH, LABEL) \
- STRINGIFY(MAJOR) "." STRINGIFY(MINOR) "." STRINGIFY(PATCH) LABEL
- #define ENABLEANONYMOUSLOGIN true
- #define ENABLEUSERNAMEPASSWORDLOGIN true
- const UA_Boolean enableAnonymousLogin = ENABLEANONYMOUSLOGIN;
- const UA_Boolean enableUsernamePasswordLogin = ENABLEUSERNAMEPASSWORDLOGIN;
- const size_t usernamePasswordsSize = 2;
- UA_UsernamePasswordLogin UsernamePasswordLogin[2] = {
- { UA_STRING_STATIC("user1"), UA_STRING_STATIC("password") },
- { UA_STRING_STATIC("user2"), UA_STRING_STATIC("password1") } };
- const UA_UsernamePasswordLogin *usernamePasswords = UsernamePasswordLogin;
- const UA_EXPORT UA_ServerConfig UA_ServerConfig_standard = {
- 1,
- UA_Log_Stdout,
-
- {UA_STRING_STATIC(PRODUCT_URI),
- UA_STRING_STATIC(MANUFACTURER_NAME),
- UA_STRING_STATIC(PRODUCT_NAME),
- UA_STRING_STATIC(VERSION(UA_OPEN62541_VER_MAJOR, UA_OPEN62541_VER_MINOR,
- UA_OPEN62541_VER_PATCH, UA_OPEN62541_VER_LABEL)),
- UA_STRING_STATIC(__DATE__ " " __TIME__), 0 },
-
- {UA_STRING_STATIC(APPLICATION_URI),
- UA_STRING_STATIC(PRODUCT_URI),
- {UA_STRING_STATIC("en"),UA_STRING_STATIC(APPLICATION_NAME) },
- UA_APPLICATIONTYPE_SERVER,
- UA_STRING_STATIC_NULL,
- UA_STRING_STATIC_NULL,
- 0, NULL },
- UA_STRING_STATIC_NULL,
- #ifdef UA_ENABLE_DISCOVERY
- UA_STRING_STATIC_NULL,
- 0,
- NULL,
- #endif
-
- 0,
- NULL,
-
- 0,
- NULL,
-
- {ENABLEANONYMOUSLOGIN, ENABLEUSERNAMEPASSWORDLOGIN,
- activateSession_default, closeSession_default,
- getUserRightsMask_default, getUserAccessLevel_default,
- getUserExecutable_default, getUserExecutableOnObject_default,
- allowAddNode_default, allowAddReference_default,
- allowDeleteNode_default, allowDeleteReference_default},
-
- 40,
- 10 * 60 * 1000,
-
- 100,
- 60.0 * 60.0 * 1000.0,
-
- {100.0,3600.0 * 1000.0 },
- {3, 15000 },
- {1,100},
- 1000,
- 0,
-
- {50.0, 24.0 * 3600.0 * 1000.0 },
- {1,100}
- #ifdef UA_ENABLE_DISCOVERY
- , 60*60
- #endif
- };
- const UA_EXPORT UA_ClientConfig UA_ClientConfig_standard = {
- 5000,
- 10 * 60 * 1000,
- UA_Log_Stdout,
-
- {0,
- 65535,
- 65535,
- 0,
- 0 },
- UA_ClientConnectionTCP,
- 0,
- NULL
- };
- #ifdef UA_ENABLE_SUBSCRIPTIONS
- const UA_SubscriptionSettings UA_SubscriptionSettings_standard = {
- 500.0,
- 10000,
- 1,
- 10,
- true,
- 0
- };
- #endif
|