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
I don't know much C and I don't quite follow how to listen for an NCMD and then take any subsequent action (which would seem to be supported by the library but I am not quite certain). It would be great to have an example of how the EON should listen for an NCMD and then take any subsequent action.
The text was updated successfully, but these errors were encountered:
Hello, the actual listening for a NCMD would be done via an external library like this one, because it is done through subscribing to the MQTT sparkplug NCMD topic.
For example, upon connecting to an MQTT Broker using the above library, you would use the setCallback function of the client to set a callback that gets called when an incoming message is received. Then you would subscribe to your sparkplug node's NCMD topic using the subscribe function. The topic char to supply to the function would be the ->topics.NCMD of the SparkplugNodeConfig struct.
I have added some more detail to the documentation (library version 0.2.5). Let me know if this helps and I will close the issue.
I don't know much C and I don't quite follow how to listen for an NCMD and then take any subsequent action (which would seem to be supported by the library but I am not quite certain). It would be great to have an example of how the EON should listen for an NCMD and then take any subsequent action.
The text was updated successfully, but these errors were encountered: