Without defined key value for interface only the default interface will
join the multicast group due to INADDR_ANY address in setsockopt.
The additional argument makes it easier to use other interfaces.
Signed-off-by: Vasilij Strassheim <v.strassheim@linutronix.de>
In 928931ec36 ("refactor(core): Move architecture-specific definition out of the public headers"),
headers were removed from the core headers, so some examples do no
longer build. Therefore, add them directly.
Fixes: 928931ec36 ("refactor(core): Move architecture-specific definition out of the public headers")
Signed-off-by: Florian Kauer <florian.kauer@linutronix.de>
* feat(pubsub): Add DSR state to pubsub-reduced namespace
* feat(pubsub) add preoperantiol-state for DataSetReaders
* feat(pubsub) DSR state representation added to information model
* feat(pubsub): Fix test to use pre-operational state
* feat(pubsub): Add state variable for Reader/WriterGroup and DataSetWriter
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* feat(pubsub): Add Pre-Operational state for WG and DSW
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* feat(pubsub) Revise state machine for Reader/WriterGroups based on proposal
- Add enableReader/WriterGroup API
- Add enableDataSetReader/Writer API
- Add automatic transitions from Pre-Operational to Operational
based on connections and securitytoken configuration
* feat(pubsub) Add test cases for state changes
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* feat(pubsub): Fix for pubsub tests to handle correct state changes
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* feat(pubsub): Update examples to support enable APIs
* feat(pubsub): Update flow for key assignment via SKS
- Remove Operational APIs for Reader/WriterGroup
- Add API to ActivateKeys to channel
- Update SKS tests and Example application to use
the new API
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* feat(pubsub): Add component interaction table for the puusub components
Signed-off-by: Gaurav Kumar Singh <gk.singh@be-services.com>
* fix(eventloop): Release lock before Shutdown
Previously only UINT16 publisherId was fully supported.
Now all PublisherId types are supported except for
string PublisherIds in combination with fast-path.
- External API usage of regist has heen removed
- Used regist in addReaderGroup API
- Resolve compile errors in nodeset pubsub realtime samples
Change-Id: I2e9a2b43f5d0be33bbc75b09901b1dc7ca1aa80b
- UpdateDSRconfig modified to support DSWId, WGId and TargetVars
- Test cases for updateDSRconfig added
- addTargetVariables API has been modified to createDataSetMirror
and commented in the stack for the future usage of mirror variables
Signed-off-by: Suriya Narayanan Parthasarathi Vimala <suriyanarayanan.pv@kalycito.com>
Change-Id: Ib28fea194897f3e4f1a457ba5dde5f9ff00976d8
- PubSub states for ReaderGroup and DataSetReader
- subscriberCallback moved into setReaderGroupOperational API
- readerGroup has to be in operational to subscribe packets
Change-Id: Ibae6b6a9cf7937917d36ccbdb1e94e2d3c5425a7
- Add separate function for channel register
- Call regist function in PubSubConnection and not in addReaderGroup
to resolve regist fail when adding multiple ReaderGroups
- Change return type of example API to handle statuscodes
Change-Id: I58ecec6af6cae2a9427b620241e08c7880b10ef7
- Add ReaderGroup, DataSetReader, TargetVariable functionality
- Data filtered from DataSetReader gets updated in target variable
available in information model
- Mirrortype implementation not handled
Change-Id: I990b4552b979fdcc76c172a07f7b245fee7d03eb
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
Make use of EXIT_SUCCESS and EXIT_FAILURE from stdlib.h.
The previous approach of returning a value from UA_StatusCode
was often broken as an exit code can (portably) only be between 0 and 125.
* PubSub: Fix memleaks in subscriber tutorial
* PubSub: Stack-allocate in the subscriber tutorial
* PubSub: In subscriber tutorial, evaluate receive error code; quit early
* PubSub: In subscriber example, use logging API instead of printf
* PubSub: Reduce the max indendation of the subscriber example; Add comments
* PubSub: Use short blocking wait times in subscriber example
* PubSub: Reduce the max line length in the subscriber example