You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I added them to my server, following the approach in the README.
Now I do see the DI related nodes in the address space:
But I cant see the device types from the AutoID:
Here is the "correct" address space (open62541 server with the same nodesets loaded):
I could still manage to create an instance like this:
let rifreader_type_id = NodeId::new(4, 1003);
//...
let instance = ObjectBuilder::new(&instance_node_id, "TestRFIDReaderDeviceType", "TestRFIDReaderDeviceType")
.has_component(rifreader_type_id.clone())
.event_notifier(EventNotifier::SUBSCRIBE_TO_EVENTS)
.organized_by(NodeId::objects_folder_id())
.insert(address_space);
But I cant write a variable or call a method. I managed to set a callback function but only if I add the method as a direct component of my RfidReader:
But this does not allow for the correct input/output arguments. I would need to use the MethodBuilder. But this doesn't work because the nodeId of this Method is already in the address space.
All this leads to the question, does this even work? Like can I load two nodesets to the server, create instances of objects and then write variables and call methods with my own callback AND the correct input and output arguments?
Any input on this is appreciated! Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to make use of the nodeset compiler but I got stuck at some things. This is related to #310
The first thing that seems off is the fact that I cant see the AutoId Device Types. I compiled DI and AutoID like this:
❯ node gen_nodeset.js --ns 2 --nodeset DI/Opc.Ua.Di.NodeSet2.xml --module di
❯ node gen_nodeset.js --ns 3 --nodeset Machinery/Opc.Ua.Machinery.NodeSet2.xml --module machinery
Then I added them to my server, following the approach in the README.
Now I do see the DI related nodes in the address space:
![DI_softwareType_correct](https://private-user-images.githubusercontent.com/35171598/381142308-ea5a1af0-f806-4828-a8ef-0a58fc4c3e05.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Mzk2MzUsIm5iZiI6MTczODgzOTMzNSwicGF0aCI6Ii8zNTE3MTU5OC8zODExNDIzMDgtZWE1YTFhZjAtZjgwNi00ODI4LWE4ZWYtMGE1OGZjNGMzZTA1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEwNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiOGQyNTIyODE4MmJkMGRiOWM1NmEzNGU0YzE3NThmYTcwMTk2ODFiYTdiOGFiZjY0YmNhOTcwOGE1YzI5NjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.e9CbdwBwEatXUYTc0hkFXdjiqipsgLMB9x5me3UBz98)
But I cant see the device types from the AutoID:
![AUTO_ID_missing_rfid](https://private-user-images.githubusercontent.com/35171598/381142526-285d89fb-0365-4baa-a433-e87f15bcb110.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Mzk2MzUsIm5iZiI6MTczODgzOTMzNSwicGF0aCI6Ii8zNTE3MTU5OC8zODExNDI1MjYtMjg1ZDg5ZmItMDM2NS00YmFhLWE0MzMtZTg3ZjE1YmNiMTEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEwNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0OThjYTZlZGUzODU0M2ZlYTcyMDYzMmFlODgzMmQxYWJkN2JmMTk4N2VjZmRkMTlmYzQ0NGI0Yzc4ZTk0MjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.G-R2D4PEvW_wLmu37ZjHMXxQpplaVkxYBnrsa-Kg1TE)
Here is the "correct" address space (open62541 server with the same nodesets loaded):
![expectedAutoID](https://private-user-images.githubusercontent.com/35171598/381142777-a8a2b70e-3baf-4446-9629-ad4dc0a0eace.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Mzk2MzUsIm5iZiI6MTczODgzOTMzNSwicGF0aCI6Ii8zNTE3MTU5OC8zODExNDI3NzctYThhMmI3MGUtM2JhZi00NDQ2LTk2MjktYWQ0ZGMwYTBlYWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEwNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiYzY3ZGJjOTNlNmQwOTRiMDMyMzFmYjI1ODM1MzAzZWMxNWU0Nzk3Y2JiNmJkNDZhMzExYmMzZjNlODk5N2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Du4qbjjLdi84SiY7qb_AuBrvZdmayQDdHDycgvM7SgM)
I could still manage to create an instance like this:
But I cant write a variable or call a method. I managed to set a callback function but only if I add the method as a direct component of my RfidReader:
But this does not allow for the correct input/output arguments. I would need to use the MethodBuilder. But this doesn't work because the nodeId of this Method is already in the address space.
All this leads to the question, does this even work? Like can I load two nodesets to the server, create instances of objects and then write variables and call methods with my own callback AND the correct input and output arguments?
Any input on this is appreciated! Thank you.
The text was updated successfully, but these errors were encountered: