server_pubsub.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. *
  5. * Copyright (c) 2017-2018 Fraunhofer IOSB (Author: Andreas Ebner)
  6. * Copyright (c) 2019 Kalycito Infotech Private Limited
  7. */
  8. #ifndef UA_SERVER_PUBSUB_H
  9. #define UA_SERVER_PUBSUB_H
  10. #include <open62541/server.h>
  11. _UA_BEGIN_DECLS
  12. #ifdef UA_ENABLE_PUBSUB
  13. /**
  14. * .. _pubsub:
  15. *
  16. * Publish/Subscribe
  17. * =================
  18. *
  19. * Work in progress!
  20. * This part will be a new chapter later.
  21. *
  22. * TODO: write general PubSub introduction
  23. *
  24. * The Publish/Subscribe (PubSub) extension for OPC UA enables fast and efficient
  25. * 1:m communication. The PubSub extension is protocol agnostic and can be used
  26. * with broker based protocols like MQTT and AMQP or brokerless implementations like UDP-Multicasting.
  27. *
  28. * The PubSub API uses the following scheme:
  29. *
  30. * 1. Create a configuration for the needed PubSub element.
  31. *
  32. * 2. Call the add[element] function and pass in the configuration.
  33. *
  34. * 3. The add[element] function returns the unique nodeId of the internally created element.
  35. *
  36. * Take a look on the PubSub Tutorials for mor details about the API usage.::
  37. *
  38. * +-----------+
  39. * | UA_Server |
  40. * +-----------+
  41. * | |
  42. * | |
  43. * | |
  44. * | | +----------------------+
  45. * | +--> UA_PubSubConnection | UA_Server_addPubSubConnection
  46. * | +----------------------+
  47. * | | |
  48. * | | | +----------------+
  49. * | | +----> UA_WriterGroup | UA_PubSubConnection_addWriterGroup
  50. * | | +----------------+
  51. * | | |
  52. * | | | +------------------+
  53. * | | +----> UA_DataSetWriter | UA_WriterGroup_addDataSetWriter +-+
  54. * | | +------------------+ |
  55. * | | |
  56. * | | +----------------+ | r
  57. * | +---------> UA_ReaderGroup | | e
  58. * | +----------------+ | f
  59. * | |
  60. * | +---------------------------+ |
  61. * +-------> UA_PubSubPublishedDataSet | UA_Server_addPublishedDataSet <-+
  62. * +---------------------------+
  63. * |
  64. * | +-----------------+
  65. * +----> UA_DataSetField | UA_PublishedDataSet_addDataSetField
  66. * +-----------------+
  67. *
  68. * PubSub compile flags
  69. * --------------------
  70. *
  71. * **UA_ENABLE_PUBSUB**
  72. * Enable the experimental OPC UA PubSub support. The option will include the PubSub UDP multicast plugin. Disabled by default.
  73. * **UA_ENABLE_PUBSUB_DELTAFRAMES**
  74. * The PubSub messages differentiate between keyframe (all published values contained) and deltaframe (only changed values contained) messages.
  75. * Deltaframe messages creation consumes some additional ressources and can be disabled with this flag. Disabled by default.
  76. * Compile the human-readable name of the StatusCodes into the binary. Disabled by default.
  77. * **UA_ENABLE_PUBSUB_INFORMATIONMODEL**
  78. * Enable the information model representation of the PubSub configuration. For more details take a look at the following section `PubSub Information Model Representation`. Disabled by default.
  79. *
  80. * PubSub Information Model Representation
  81. * ---------------------------------------
  82. * .. _pubsub_informationmodel:
  83. *
  84. * The complete PubSub configuration is available inside the information model.
  85. * The entry point is the node 'PublishSubscribe, located under the Server node.
  86. * The standard defines for PubSub no new Service set. The configuration can optionally
  87. * done over methods inside the information model. The information model representation
  88. * of the current PubSub configuration is generated automatically. This feature
  89. * can enabled/disable by changing the UA_ENABLE_PUBSUB_INFORMATIONMODEL option.
  90. *
  91. * Connections
  92. * -----------
  93. * The PubSub connections are the abstraction between the concrete transport protocol
  94. * and the PubSub functionality. It is possible to create multiple connections with
  95. * different transport protocols at runtime.
  96. *
  97. * Take a look on the PubSub Tutorials for mor details about the API usage.
  98. */
  99. typedef enum {
  100. UA_PUBSUB_PUBLISHERID_NUMERIC,
  101. UA_PUBSUB_PUBLISHERID_STRING
  102. } UA_PublisherIdType;
  103. typedef struct {
  104. UA_String name;
  105. UA_Boolean enabled;
  106. UA_PublisherIdType publisherIdType;
  107. union { /* std: valid types UInt or String */
  108. UA_UInt32 numeric;
  109. UA_String string;
  110. } publisherId;
  111. UA_String transportProfileUri;
  112. UA_Variant address;
  113. size_t connectionPropertiesSize;
  114. UA_KeyValuePair *connectionProperties;
  115. UA_Variant connectionTransportSettings;
  116. /* This flag is 'read only' and is set internally based on the PubSub state. */
  117. UA_Boolean configurationFrozen;
  118. } UA_PubSubConnectionConfig;
  119. UA_StatusCode UA_EXPORT
  120. UA_Server_addPubSubConnection(UA_Server *server,
  121. const UA_PubSubConnectionConfig *connectionConfig,
  122. UA_NodeId *connectionIdentifier);
  123. /* Returns a deep copy of the config */
  124. UA_StatusCode UA_EXPORT
  125. UA_Server_getPubSubConnectionConfig(UA_Server *server,
  126. const UA_NodeId connection,
  127. UA_PubSubConnectionConfig *config);
  128. /* Remove Connection, identified by the NodeId. Deletion of Connection
  129. * removes all contained WriterGroups and Writers. */
  130. UA_StatusCode UA_EXPORT
  131. UA_Server_removePubSubConnection(UA_Server *server, const UA_NodeId connection);
  132. /**
  133. * PublishedDataSets
  134. * -----------------
  135. * The PublishedDataSets (PDS) are containers for the published information. The
  136. * PDS contain the published variables and meta informations. The metadata is
  137. * commonly autogenerated or given as constant argument as part of the template
  138. * functions. The template functions are standard defined and intended for
  139. * configuration tools. You should normally create a empty PDS and call the
  140. * functions to add new fields. */
  141. /* The UA_PUBSUB_DATASET_PUBLISHEDITEMS has currently no additional members and
  142. * thus no dedicated config structure. */
  143. typedef enum {
  144. UA_PUBSUB_DATASET_PUBLISHEDITEMS,
  145. UA_PUBSUB_DATASET_PUBLISHEDEVENTS,
  146. UA_PUBSUB_DATASET_PUBLISHEDITEMS_TEMPLATE,
  147. UA_PUBSUB_DATASET_PUBLISHEDEVENTS_TEMPLATE,
  148. } UA_PublishedDataSetType;
  149. typedef struct {
  150. UA_DataSetMetaDataType metaData;
  151. size_t variablesToAddSize;
  152. UA_PublishedVariableDataType *variablesToAdd;
  153. } UA_PublishedDataItemsTemplateConfig;
  154. typedef struct {
  155. UA_NodeId eventNotfier;
  156. UA_ContentFilter filter;
  157. } UA_PublishedEventConfig;
  158. typedef struct {
  159. UA_DataSetMetaDataType metaData;
  160. UA_NodeId eventNotfier;
  161. size_t selectedFieldsSize;
  162. UA_SimpleAttributeOperand *selectedFields;
  163. UA_ContentFilter filter;
  164. } UA_PublishedEventTemplateConfig;
  165. /* Configuration structure for PublishedDataSet */
  166. typedef struct {
  167. UA_String name;
  168. UA_PublishedDataSetType publishedDataSetType;
  169. union {
  170. /* The UA_PUBSUB_DATASET_PUBLISHEDITEMS has currently no additional members
  171. * and thus no dedicated config structure.*/
  172. UA_PublishedDataItemsTemplateConfig itemsTemplate;
  173. UA_PublishedEventConfig event;
  174. UA_PublishedEventTemplateConfig eventTemplate;
  175. } config;
  176. /* This flag is 'read only' and is set internally based on the PubSub state. */
  177. UA_Boolean configurationFrozen;
  178. } UA_PublishedDataSetConfig;
  179. void UA_EXPORT
  180. UA_PublishedDataSetConfig_deleteMembers(UA_PublishedDataSetConfig *pdsConfig);
  181. typedef struct {
  182. UA_StatusCode addResult;
  183. size_t fieldAddResultsSize;
  184. UA_StatusCode *fieldAddResults;
  185. UA_ConfigurationVersionDataType configurationVersion;
  186. } UA_AddPublishedDataSetResult;
  187. UA_AddPublishedDataSetResult UA_EXPORT
  188. UA_Server_addPublishedDataSet(UA_Server *server,
  189. const UA_PublishedDataSetConfig *publishedDataSetConfig,
  190. UA_NodeId *pdsIdentifier);
  191. /* Returns a deep copy of the config */
  192. UA_StatusCode UA_EXPORT
  193. UA_Server_getPublishedDataSetConfig(UA_Server *server, const UA_NodeId pds,
  194. UA_PublishedDataSetConfig *config);
  195. /* Remove PublishedDataSet, identified by the NodeId. Deletion of PDS removes
  196. * all contained and linked PDS Fields. Connected WriterGroups will be also
  197. * removed. */
  198. UA_StatusCode UA_EXPORT
  199. UA_Server_removePublishedDataSet(UA_Server *server, const UA_NodeId pds);
  200. /**
  201. * DataSetFields
  202. * -------------
  203. * The description of published variables is named DataSetField. Each
  204. * DataSetField contains the selection of one information model node. The
  205. * DataSetField has additional parameters for the publishing, sampling and error
  206. * handling process. */
  207. typedef struct{
  208. UA_ConfigurationVersionDataType configurationVersion;
  209. UA_String fieldNameAlias;
  210. UA_Boolean promotedField;
  211. UA_PublishedVariableDataType publishParameters;
  212. /* non std. field */
  213. UA_Boolean staticValueSourceEnabled;
  214. UA_DataValue staticValueSource;
  215. } UA_DataSetVariableConfig;
  216. typedef enum {
  217. UA_PUBSUB_DATASETFIELD_VARIABLE,
  218. UA_PUBSUB_DATASETFIELD_EVENT
  219. } UA_DataSetFieldType;
  220. typedef struct {
  221. UA_DataSetFieldType dataSetFieldType;
  222. union {
  223. /* events need other config later */
  224. UA_DataSetVariableConfig variable;
  225. } field;
  226. /* This flag is 'read only' and is set internally based on the PubSub state. */
  227. UA_Boolean configurationFrozen;
  228. } UA_DataSetFieldConfig;
  229. void UA_EXPORT
  230. UA_DataSetFieldConfig_deleteMembers(UA_DataSetFieldConfig *dataSetFieldConfig);
  231. typedef struct {
  232. UA_StatusCode result;
  233. UA_ConfigurationVersionDataType configurationVersion;
  234. } UA_DataSetFieldResult;
  235. UA_DataSetFieldResult UA_EXPORT
  236. UA_Server_addDataSetField(UA_Server *server,
  237. const UA_NodeId publishedDataSet,
  238. const UA_DataSetFieldConfig *fieldConfig,
  239. UA_NodeId *fieldIdentifier);
  240. /* Returns a deep copy of the config */
  241. UA_StatusCode UA_EXPORT
  242. UA_Server_getDataSetFieldConfig(UA_Server *server, const UA_NodeId dsf,
  243. UA_DataSetFieldConfig *config);
  244. UA_DataSetFieldResult UA_EXPORT
  245. UA_Server_removeDataSetField(UA_Server *server, const UA_NodeId dsf);
  246. /**
  247. * WriterGroup
  248. * -----------
  249. * All WriterGroups are created within a PubSubConnection and automatically
  250. * deleted if the connection is removed. The WriterGroup is primary used as
  251. * container for :ref:`dsw` and network message settings. The WriterGroup can be
  252. * imagined as producer of the network messages. The creation of network
  253. * messages is controlled by parameters like the publish interval, which is e.g.
  254. * contained in the WriterGroup. */
  255. typedef enum {
  256. UA_PUBSUB_ENCODING_BINARY,
  257. UA_PUBSUB_ENCODING_JSON,
  258. UA_PUBSUB_ENCODING_UADP
  259. } UA_PubSubEncodingType;
  260. /**
  261. * WriterGroup
  262. * -----------
  263. * The message publishing can be configured for realtime requirements. The RT-levels
  264. * go along with different requirements. The below listed levels can be configured:
  265. *
  266. * UA_PUBSUB_RT_NONE -
  267. * ---> Description: Default "none-RT" Mode
  268. * ---> Requirements: -
  269. * ---> Restrictions: -
  270. * UA_PUBSUB_RT_DIRECT_VALUE_ACCESS (Preview - not implemented)
  271. * ---> Description: Normally, the latest value for each DataSetField is read out of the information model. Within this RT-mode, the
  272. * value source of each field configured as static pointer to an DataValue. The publish cycle won't use call the server read function.
  273. * ---> Requirements: All fields must be configured with a 'staticValueSource'.
  274. * ---> Restrictions: -
  275. * UA_PUBSUB_RT_FIXED_LENGTH (Preview - not implemented)
  276. * ---> Description: All DataSetFields have a known, non-changing length. The server will pre-generate some
  277. * buffers and use only memcopy operations to generate requested PubSub packages.
  278. * ---> Requirements: DataSetFields with variable size can't be used within this mode.
  279. * ---> Restrictions: The configuration must be frozen and changes are not allowed while the WriterGroup is 'Operational'.
  280. * UA_PUBSUB_RT_DETERMINISTIC (Preview - not implemented)
  281. * ---> Description: -
  282. * ---> Requirements: -
  283. * ---> Restrictions: -
  284. *
  285. * WARNING! For hard real time requirements the underlying system must be rt-capable.
  286. *
  287. */
  288. typedef enum {
  289. UA_PUBSUB_RT_NONE = 0,
  290. UA_PUBSUB_RT_DIRECT_VALUE_ACCESS = 1,
  291. UA_PUBSUB_RT_FIXED_SIZE = 2,
  292. UA_PUBSUB_RT_DETERMINISTIC = 4,
  293. } UA_PubSubRTLevel;
  294. typedef struct {
  295. UA_String name;
  296. UA_Boolean enabled;
  297. UA_UInt16 writerGroupId;
  298. UA_Duration publishingInterval;
  299. UA_Double keepAliveTime;
  300. UA_Byte priority;
  301. UA_MessageSecurityMode securityMode;
  302. UA_ExtensionObject transportSettings;
  303. UA_ExtensionObject messageSettings;
  304. size_t groupPropertiesSize;
  305. UA_KeyValuePair *groupProperties;
  306. UA_PubSubEncodingType encodingMimeType;
  307. /* non std. config parameter. maximum count of embedded DataSetMessage in
  308. * one NetworkMessage */
  309. UA_UInt16 maxEncapsulatedDataSetMessageCount;
  310. /* This flag is 'read only' and is set internally based on the PubSub state. */
  311. UA_Boolean configurationFrozen;
  312. /* non std. field */
  313. UA_PubSubRTLevel rtLevel;
  314. } UA_WriterGroupConfig;
  315. void UA_EXPORT
  316. UA_WriterGroupConfig_deleteMembers(UA_WriterGroupConfig *writerGroupConfig);
  317. /* Add a new WriterGroup to an existing Connection */
  318. UA_StatusCode UA_EXPORT
  319. UA_Server_addWriterGroup(UA_Server *server, const UA_NodeId connection,
  320. const UA_WriterGroupConfig *writerGroupConfig,
  321. UA_NodeId *writerGroupIdentifier);
  322. /* Returns a deep copy of the config */
  323. UA_StatusCode UA_EXPORT
  324. UA_Server_getWriterGroupConfig(UA_Server *server, const UA_NodeId writerGroup,
  325. UA_WriterGroupConfig *config);
  326. UA_StatusCode UA_EXPORT
  327. UA_Server_updateWriterGroupConfig(UA_Server *server, UA_NodeId writerGroupIdentifier,
  328. const UA_WriterGroupConfig *config);
  329. UA_StatusCode UA_EXPORT
  330. UA_Server_removeWriterGroup(UA_Server *server, const UA_NodeId writerGroup);
  331. UA_StatusCode UA_EXPORT
  332. UA_Server_freezeWriterGroupConfiguration(UA_Server *server, const UA_NodeId writerGroup);
  333. UA_StatusCode UA_EXPORT
  334. UA_Server_unfreezeWriterGroupConfiguration(UA_Server *server, const UA_NodeId writerGroup);
  335. UA_StatusCode UA_EXPORT
  336. UA_Server_setWriterGroupOperational(UA_Server *server, const UA_NodeId writerGroup);
  337. UA_StatusCode UA_EXPORT
  338. UA_Server_setWriterGroupDisabled(UA_Server *server, const UA_NodeId writerGroup);
  339. /**
  340. * .. _dsw: UA_Boolean configurationFrozen;
  341. *
  342. * DataSetWriter
  343. * -------------
  344. * The DataSetWriters are the glue between the WriterGroups and the
  345. * PublishedDataSets. The DataSetWriter contain configuration parameters and
  346. * flags which influence the creation of DataSet messages. These messages are
  347. * encapsulated inside the network message. The DataSetWriter must be linked
  348. * with an existing PublishedDataSet and be contained within a WriterGroup. */
  349. typedef struct {
  350. UA_String name;
  351. UA_UInt16 dataSetWriterId;
  352. UA_DataSetFieldContentMask dataSetFieldContentMask;
  353. UA_UInt32 keyFrameCount;
  354. UA_ExtensionObject messageSettings;
  355. UA_String dataSetName;
  356. size_t dataSetWriterPropertiesSize;
  357. UA_KeyValuePair *dataSetWriterProperties;
  358. /* This flag is 'read only' and is set internally based on the PubSub state. */
  359. UA_Boolean configurationFrozen;
  360. } UA_DataSetWriterConfig;
  361. void UA_EXPORT
  362. UA_DataSetWriterConfig_deleteMembers(UA_DataSetWriterConfig *pdsConfig);
  363. /* Add a new DataSetWriter to a existing WriterGroup. The DataSetWriter must be
  364. * coupled with a PublishedDataSet on creation.
  365. *
  366. * Part 14, 7.1.5.2.1 defines: The link between the PublishedDataSet and
  367. * DataSetWriter shall be created when an instance of the DataSetWriterType is
  368. * created. */
  369. UA_StatusCode UA_EXPORT
  370. UA_Server_addDataSetWriter(UA_Server *server,
  371. const UA_NodeId writerGroup, const UA_NodeId dataSet,
  372. const UA_DataSetWriterConfig *dataSetWriterConfig,
  373. UA_NodeId *writerIdentifier);
  374. /* Returns a deep copy of the config */
  375. UA_StatusCode UA_EXPORT
  376. UA_Server_getDataSetWriterConfig(UA_Server *server, const UA_NodeId dsw,
  377. UA_DataSetWriterConfig *config);
  378. UA_StatusCode UA_EXPORT
  379. UA_Server_removeDataSetWriter(UA_Server *server, const UA_NodeId dsw);
  380. /**
  381. * DataSetReader
  382. * -------------
  383. * DataSetReader can receive NetworkMessages with the DataSet
  384. * of interest sent by the Publisher. DataSetReaders represent
  385. * the configuration necessary to receive and process DataSetMessages
  386. * on the Subscriber side */
  387. /* Parameters for PubSubSecurity */
  388. typedef struct {
  389. UA_Int32 securityMode; /* placeholder datatype 'MessageSecurityMode' */
  390. UA_String securityGroupId;
  391. size_t keyServersSize;
  392. UA_Int32 *keyServers;
  393. } UA_PubSubSecurityParameters;
  394. /* Parameters for PubSub DataSetReader Configuration */
  395. typedef struct {
  396. UA_String name;
  397. UA_Variant publisherId;
  398. UA_UInt16 writerGroupId;
  399. UA_UInt16 dataSetWriterId;
  400. UA_DataSetMetaDataType dataSetMetaData;
  401. UA_DataSetFieldContentMask dataSetFieldContentMask;
  402. UA_Double messageReceiveTimeout;
  403. UA_PubSubSecurityParameters securityParameters;
  404. UA_UadpDataSetReaderMessageDataType messageSettings;
  405. UA_TargetVariablesDataType subscribedDataSetTarget;
  406. } UA_DataSetReaderConfig;
  407. /* Update configuration to the dataSetReader */
  408. UA_StatusCode
  409. UA_Server_DataSetReader_updateConfig(UA_Server *server, UA_NodeId dataSetReaderIdentifier,
  410. UA_NodeId readerGroupIdentifier, const UA_DataSetReaderConfig *config);
  411. /* Get configuration of the dataSetReader */
  412. UA_StatusCode
  413. UA_Server_DataSetReader_getConfig(UA_Server *server, UA_NodeId dataSetReaderIdentifier,
  414. UA_DataSetReaderConfig *config);
  415. /* Return Status Code after creating TargetVariables in Subscriber AddressSpace
  416. * TargetVariables define a list of variable mappings between received DataSet fields
  417. * and the TargetVariables in the Subscriber AddressSpace */
  418. UA_StatusCode
  419. UA_Server_DataSetReader_createTargetVariables(UA_Server *server, UA_NodeId dataSetReaderIdentifier,
  420. UA_TargetVariablesDataType* targetVariables);
  421. /* To Do:Implementation of SubscribedDataSetMirrorType
  422. * UA_StatusCode
  423. * A_PubSubDataSetReader_createDataSetMirror(UA_Server *server, UA_NodeId dataSetReaderIdentifier,
  424. * UA_SubscribedDataSetMirrorDataType* mirror) */
  425. /**
  426. * ReaderGroup
  427. * -----------
  428. * All ReaderGroups are created within a PubSubConnection and automatically
  429. * deleted if the connection is removed. */
  430. /* ReaderGroup configuration */
  431. typedef struct {
  432. UA_String name;
  433. UA_PubSubSecurityParameters securityParameters;
  434. } UA_ReaderGroupConfig;
  435. /* Add DataSetReader to the ReaderGroup */
  436. UA_StatusCode
  437. UA_Server_addDataSetReader(UA_Server *server, UA_NodeId readerGroupIdentifier,
  438. const UA_DataSetReaderConfig *dataSetReaderConfig,
  439. UA_NodeId *readerIdentifier);
  440. /* Remove DataSetReader from ReaderGroup */
  441. UA_StatusCode
  442. UA_Server_removeDataSetReader(UA_Server *server, UA_NodeId readerIdentifier);
  443. /* To Do: Update Configuration of ReaderGroup
  444. * UA_StatusCode
  445. * UA_Server_ReaderGroup_updateConfig(UA_Server *server, UA_NodeId readerGroupIdentifier,
  446. * const UA_ReaderGroupConfig *config);
  447. */
  448. /* Get configuraiton of ReaderGroup */
  449. UA_StatusCode
  450. UA_Server_ReaderGroup_getConfig(UA_Server *server, UA_NodeId readerGroupIdentifier,
  451. UA_ReaderGroupConfig *config);
  452. /* Add ReaderGroup to the created connection */
  453. UA_StatusCode
  454. UA_Server_addReaderGroup(UA_Server *server, UA_NodeId connectionIdentifier,
  455. const UA_ReaderGroupConfig *readerGroupConfig,
  456. UA_NodeId *readerGroupIdentifier);
  457. /* Remove ReaderGroup from connection */
  458. UA_StatusCode
  459. UA_Server_removeReaderGroup(UA_Server *server, UA_NodeId groupIdentifier);
  460. #endif /* UA_ENABLE_PUBSUB */
  461. _UA_END_DECLS
  462. #endif /* UA_SERVER_PUBSUB_H */