Bug in UA IIoT Starter Kit|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Bug in UA IIoT Starter Kit
Avatar
Tasso Eloy Barbosa
Member
Members
Forum Posts: 3
Member Since:
09/18/2023
sp_UserOfflineSmall Offline
1
11/03/2023 - 02:12
sp_Permalink sp_Print

Hello guys,

I am following the basic steps in order to publish and subscribe in a Raspberry Pi and Windows environment, but it seems to have a problem with the subscriber, as shown in the code below. I checked the connections and the code itself and couldn’t identify what is messing up my tests. I even checked the messages to the broker using the mqtt-spy and it seems to be working as well.

Do you have a lead on what is causing it?

Publisher:

pi@raspberrypi:~/MqttAgent $ dotnet MqttAgent.dll publish –broker mqtt://192.168.137.1:1883 –id device:one –topic starterkit
Starting OPC UA Server.
Connecting OPC UA Server.
Loading Configuration (PublisherId=device:one).
opc.tcp://raspberrypi:48040/
Starting Publisher (BrokerUrl=mqtt://192.168.137.1:1883/ V311 TopicPrefix=starterkit).

Select Option:
[X] to stop the program.

Subscriber:

C:\git\StarterKit\UA-IIoT-StarterKit\build\bin\Debug\MqttAgent
et6.0> dotnet MqttAgent.dll subscribe –broker mqtt://127.0.0.1:1883 –topic starterkit
Loading Configuration (PublisherId=).
Starting Subscriber (BrokerUrl=mqtt://127.0.0.1:1883/ V311 TopicPrefix=starterkit).
CONNECT: Success

 

Select Option:
[1] to subscribe to ‘device:one’.
[M] to print the menu.
[X] to stop the program.

SUBSCRIBE: device:one.
[NullReferenceException] Object reference not set to an instance of an object.

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/03/2023 - 06:43
sp_Permalink sp_Print

This is the public version? Not the member version?

Avatar
Tasso Eloy Barbosa
Member
Members
Forum Posts: 3
Member Since:
09/18/2023
sp_UserOfflineSmall Offline
3
11/06/2023 - 00:23
sp_Permalink sp_Print

Hello Randy,

It is happening in the member version. I even opened an “issue” in the repository.

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
11/06/2023 - 05:17
sp_Permalink sp_Print

I just pushed a major update to the member only version.

The documentation has not been updated yet but MqttAgent has been replaced with two separate console apps (UaMqttPublisher and UaMqttSubscriber).

You can try these new apps.

Avatar
Tasso Eloy Barbosa
Member
Members
Forum Posts: 3
Member Since:
09/18/2023
sp_UserOfflineSmall Offline
5
11/06/2023 - 07:41
sp_Permalink sp_Print

Thank you for your reply, I will test them now. Smile

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
11/06/2023 - 10:47
sp_Permalink sp_Print

I am actively testing and chasing bugs this week.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 26
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1446
Posts: 4890