BadServiceUnsupported when try to connect any Server
Posted: 20 Nov 2020, 08:22
Hello Community,
I am making a simple OPCUA Server and I am having problems to connect with the UAExpert Client. I am facing with all the examples from the open6241 examples, but I am trying the simple server and still happens
When I try to connect this is the error that I am facing "... failed (BadServiceUnsupported)..."
This is the code of the simple Server.
#include <open62541/plugin/log_stdout.h>
#include <open62541/server.h>
#include <open62541/server_config_default.h>
#include <signal.h>
#include <stdlib.h>
static volatile UA_Boolean running = true;
static void stopHandler(int sig) {
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "received ctrl-c");
running = false;
}
int main(void) {
signal(SIGINT, stopHandler);
signal(SIGTERM, stopHandler);
UA_Server *server = UA_Server_new();
UA_ServerConfig_setDefault(UA_Server_getConfig(server));
UA_StatusCode retval = UA_Server_run(server, &running);
UA_Server_delete(server);
return retval == UA_STATUSCODE_GOOD ? EXIT_SUCCESS : EXIT_FAILURE;
}
examples that I have tried
Simple server from open62541
tutorial_pubsub_publish
tutorial_server_firststeps
I am using Linux Mint
.$ cat /etc/os-release
NAME="Linux Mint"
VERSION="19.3 (Tricia)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.3"
VERSION_ID="19.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tricia
UBUNTU_CODENAME=bionic
Used CMake options:
I have try with many examples compile with the following cmake flags
- UA_BUILD_EXAMPLES
- UA_ENABLE_PUBSUB
- UA_ENABLE_PUBSUB_ETH_UADP
- UA_ENABLE_PUBSUB_INFORMATIONMODEL
- UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS
- UA_NAMESPACE_ZERO FULL
If you need more details or image you can go to this github post
https://github.com/open62541/open62541/issues/4021
I am making a simple OPCUA Server and I am having problems to connect with the UAExpert Client. I am facing with all the examples from the open6241 examples, but I am trying the simple server and still happens
When I try to connect this is the error that I am facing "... failed (BadServiceUnsupported)..."
This is the code of the simple Server.
#include <open62541/plugin/log_stdout.h>
#include <open62541/server.h>
#include <open62541/server_config_default.h>
#include <signal.h>
#include <stdlib.h>
static volatile UA_Boolean running = true;
static void stopHandler(int sig) {
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "received ctrl-c");
running = false;
}
int main(void) {
signal(SIGINT, stopHandler);
signal(SIGTERM, stopHandler);
UA_Server *server = UA_Server_new();
UA_ServerConfig_setDefault(UA_Server_getConfig(server));
UA_StatusCode retval = UA_Server_run(server, &running);
UA_Server_delete(server);
return retval == UA_STATUSCODE_GOOD ? EXIT_SUCCESS : EXIT_FAILURE;
}
examples that I have tried
Simple server from open62541
tutorial_pubsub_publish
tutorial_server_firststeps
I am using Linux Mint
.$ cat /etc/os-release
NAME="Linux Mint"
VERSION="19.3 (Tricia)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.3"
VERSION_ID="19.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tricia
UBUNTU_CODENAME=bionic
Used CMake options:
I have try with many examples compile with the following cmake flags
- UA_BUILD_EXAMPLES
- UA_ENABLE_PUBSUB
- UA_ENABLE_PUBSUB_ETH_UADP
- UA_ENABLE_PUBSUB_INFORMATIONMODEL
- UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS
- UA_NAMESPACE_ZERO FULL
If you need more details or image you can go to this github post
https://github.com/open62541/open62541/issues/4021