Topic RSS9:10, EEST
October 17, 2012
OfflineCurrently I am exploring your UA Java stack for basic android client development, I am successful with basic connectivity by following “http://www.prosysopc.com/blog/2012/02/24/otso/15/”, but I am facing an error message while reading from a user defined numeric NodeID.
dv = myClient.readValue(Identifiers.Server_ServerStatus_CurrentTime); //Came with example and works fine
dv = myClient.readValue(NodeId.get(IdType.String, 4,”Counter1″)); //I added my self and work fine
dv = myClient.readValue(NodeId.get(IdType.Numeric, 4,518)); //throw an error message: ‘java.lang.ClassCastException:java.lang.Integer’
May be i am doing it wrong
I will appreciate someone helping me here?
Also I am using the evaluation version, and do not have access to the documentation of Java stack, the one came with evaluation does in list the classes but does not detail the attributes and functions, how can I get access to more detail documentaion to understand the stack more?
9:58, EEST
October 17, 2012
Offline11:05, EEST
December 21, 2011
Offline9:27, EEST
October 24, 2012
OfflineJahanzaib said
Currently I am exploring your UA Java stack for basic android client development, I am successful with basic connectivity by following “http://www.prosysopc.com/blog/2012/02/24/otso/15/”, but I am facing an error message while reading from a user defined numeric NodeID.
dv = myClient.readValue(Identifiers.Server_ServerStatus_CurrentTime); //Came with example and works fine
dv = myClient.readValue(NodeId.get(IdType.String, 4,”Counter1″)); //I added my self and work fine
dv = myClient.readValue(NodeId.get(IdType.Numeric, 4,518)); //throw an error message: ‘java.lang.ClassCastException:java.lang.Integer’May be i am doing it wrong
I will appreciate someone helping me here?
Also I am using the evaluation version, and do not have access to the documentation of Java stack, the one came with evaluation does in list the classes but does not detail the attributes and functions, how can I get access to more detail documentaion to understand the stack more?
I am facing a connection issue with the sample console server provided with the sdk. Could you please tell me if u faced similar issues. My emulator is running on android 2.3.3 and I have used opc.tcp://10.0.2.2:52520/OPCUA/SampleConsoleServer as my serverUri which was already present in the current Sample Android Application code, I did not change anything. But I noticed that the myClient.connect call is not being successful and thus my Application is force stopping. Could you please help me incase you faced similar issues. The steps I have followed is:-
1. Compile and run the Server in the console.
2. Compile and run the client on my android emulator.
I am using Eclipse IDE to do everything.
10:48, EEST
December 21, 2011
Offlinexenonforlife said
I am facing a connection issue with the sample console server provided with the sdk. Could you please tell me if u faced similar issues. My emulator is running on android 2.3.3 and I have used opc.tcp://10.0.2.2:52520/OPCUA/SampleConsoleServer as my serverUri which was already present in the current Sample Android Application code, I did not change anything. But I noticed that the myClient.connect call is not being successful and thus my Application is force stopping. Could you please help me incase you faced similar issues. The steps I have followed is:-
1. Compile and run the Server in the console.
2. Compile and run the client on my android emulator.I am using Eclipse IDE to do everything.
We can discuss this issue further in this thread: http://www.prosysopc.com/blog/…..oleserver/

Log In
Register