Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] request information

Good morning Kevin,
thanks very much for your reply;

I was able to solve the issue for what i send the mail, even if I do not understand why, I just changed the reference, as indicated in the picture:

methodNode.addReference(new Reference(

methodNode.getNodeId(),

//Identifiers.HasModellingRule,

//Identifiers.HasComponent,

//objectTypeNode.getNodeId().expanded(),

Identifiers.HasModellingRule,

Identifiers.ModellingRule_Mandatory.expanded(),

false

));


And I get what I want that is an object "MyObject" and a method as a child under it "SendJoinprocess"

image.png



Now I have a different problem. The method defined under MyObject does not works at all (the code on method SendJoinProcess is the same as in the method sqrt(x)).

image.png




and if a make a call:
image.png



while I'm going to aspect:

image.png



So I'm not able to understand, why the method under QualityServer works well, and the method under MyObject does not work at all; In attached the class ExampleNamespace








Il giorno lun 24 giu 2024 alle ore 16:18 Kevin Herron <kevinherron@xxxxxxxxx> ha scritto:
What have you tried so far?

The example adds a method as a child to a folder object, which is conceptually the same thing you are trying to accomplish, so I'm not sure what you're missing.

On Thu, Jun 20, 2024 at 2:54 PM Francesco Viscomi via milo-dev <milo-dev@xxxxxxxxxxx> wrote:
Hi all, 
I'm new to eclipse Milo and opc-ua so please apologies to me, for the question if it can be seen as a stupid question.
Any help is really appreciated!!!

What I try to accomplish on the server side is an object that has some methods as child, like in the following figure:
image.png


I have tried almost everything (trying to understand the example in the milo repository), in particular in the class exampleNamespace:

but after 2 days spent in that, nothing has worked.

thanks


--
Ing. Viscomi Francesco
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev


--
Ing. Viscomi Francesco

Attachment: ExampleNamespace.java
Description: Binary data


Back to the top