|
@@ -790,21 +790,13 @@ UA_Server_initNS0(UA_Server *server) {
|
|
|
&maxBrowseContinuationPoints, &UA_TYPES[UA_TYPES_UINT16]);
|
|
|
|
|
|
|
|
|
- UA_String profileArray[5];
|
|
|
+ UA_String profileArray[2];
|
|
|
UA_UInt16 profileArraySize = 0;
|
|
|
#define ADDPROFILEARRAY(x) profileArray[profileArraySize++] = UA_STRING(x)
|
|
|
- ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/NanoEmbeddedDevice");
|
|
|
-#ifdef UA_ENABLE_NODEMANAGEMENT
|
|
|
- ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/NodeManagement");
|
|
|
-#endif
|
|
|
+ ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/MicroEmbeddedDevice");
|
|
|
+
|
|
|
#ifdef UA_ENABLE_METHODCALLS
|
|
|
ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/Methods");
|
|
|
-#endif
|
|
|
-#ifdef UA_ENABLE_SUBSCRIPTIONS
|
|
|
- ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/EmbeddedDataChangeSubscription");
|
|
|
-#endif
|
|
|
-#ifdef UA_ENABLE_HISTORIZING
|
|
|
- ADDPROFILEARRAY("http://opcfoundation.org/UA-Profile/Server/HistoricalRawData");
|
|
|
#endif
|
|
|
retVal |= writeNs0VariableArray(server, UA_NS0ID_SERVER_SERVERCAPABILITIES_SERVERPROFILEARRAY,
|
|
|
profileArray, profileArraySize, &UA_TYPES[UA_TYPES_STRING]);
|