client.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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 2015-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  6. * Copyright 2015-2016 (c) Sten Grüner
  7. * Copyright 2015-2016 (c) Chris Iatrou
  8. * Copyright 2015-2017 (c) Florian Palm
  9. * Copyright 2015 (c) Holger Jeromin
  10. * Copyright 2015 (c) Oleksiy Vasylyev
  11. * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
  12. * Copyright 2017 (c) Mark Giraud, Fraunhofer IOSB
  13. * Copyright 2018 (c) Thomas Stalder, Blue Time Concept SA
  14. * Copyright 2018 (c) Kalycito Infotech Private Limited
  15. */
  16. #ifndef UA_CLIENT_H_
  17. #define UA_CLIENT_H_
  18. #include <open62541/client_config.h>
  19. #include <open62541/nodeids.h>
  20. #include <open62541/types.h>
  21. #include <open62541/types_generated.h>
  22. #include <open62541/types_generated_handling.h>
  23. _UA_BEGIN_DECLS
  24. /**
  25. * .. _client:
  26. *
  27. * Client
  28. * ======
  29. *
  30. * The client implementation allows remote access to all OPC UA services. For
  31. * convenience, some functionality has been wrapped in :ref:`high-level
  32. * abstractions <client-highlevel>`.
  33. *
  34. * **However**: At this time, the client does not yet contain its own thread or
  35. * event-driven main-loop. So the client will not perform any actions
  36. * automatically in the background. This is especially relevant for
  37. * subscriptions. The user will have to periodically call
  38. * `UA_Client_Subscriptions_manuallySendPublishRequest`. See also :ref:`here
  39. * <client-subscriptions>`.
  40. *
  41. *
  42. * .. include:: client_config.rst
  43. *
  44. * Client Lifecycle
  45. * ---------------- */
  46. /* The method UA_Client_new is defined in client_config_default.h. So default
  47. * plugins outside of the core library (for logging, etc) are already available
  48. * during the initialization.
  49. *
  50. * UA_Client UA_EXPORT * UA_Client_new(void);
  51. */
  52. /* Creates a new client. Moves the config into the client with a shallow copy.
  53. * The config content is cleared together with the client. */
  54. UA_Client UA_EXPORT *
  55. UA_Client_newWithConfig(const UA_ClientConfig *config);
  56. /* Get the client connection status */
  57. UA_ClientState UA_EXPORT
  58. UA_Client_getState(UA_Client *client);
  59. /* Get the client configuration */
  60. UA_EXPORT UA_ClientConfig *
  61. UA_Client_getConfig(UA_Client *client);
  62. /* Get the client context */
  63. static UA_INLINE void *
  64. UA_Client_getContext(UA_Client *client) {
  65. UA_ClientConfig *config = UA_Client_getConfig(client); /* Cannot fail */
  66. return config->clientContext;
  67. }
  68. /* Reset a client */
  69. void UA_EXPORT
  70. UA_Client_reset(UA_Client *client);
  71. /* Delete a client */
  72. void UA_EXPORT
  73. UA_Client_delete(UA_Client *client);
  74. /**
  75. * Connect to a Server
  76. * ------------------- */
  77. typedef void (*UA_ClientAsyncServiceCallback)(UA_Client *client, void *userdata,
  78. UA_UInt32 requestId, void *response);
  79. /* Connect to the server
  80. *
  81. * @param client to use
  82. * @param endpointURL to connect (for example "opc.tcp://localhost:4840")
  83. * @return Indicates whether the operation succeeded or returns an error code */
  84. UA_StatusCode UA_EXPORT
  85. UA_Client_connect(UA_Client *client, const char *endpointUrl);
  86. UA_StatusCode UA_EXPORT
  87. UA_Client_connect_async(UA_Client *client, const char *endpointUrl,
  88. UA_ClientAsyncServiceCallback callback,
  89. void *userdata);
  90. /* Connect to the server without creating a session
  91. *
  92. * @param client to use
  93. * @param endpointURL to connect (for example "opc.tcp://localhost:4840")
  94. * @return Indicates whether the operation succeeded or returns an error code */
  95. UA_StatusCode UA_EXPORT
  96. UA_Client_connect_noSession(UA_Client *client, const char *endpointUrl);
  97. /* Connect to the selected server with the given username and password
  98. *
  99. * @param client to use
  100. * @param endpointURL to connect (for example "opc.tcp://localhost:4840")
  101. * @param username
  102. * @param password
  103. * @return Indicates whether the operation succeeded or returns an error code */
  104. UA_StatusCode UA_EXPORT
  105. UA_Client_connect_username(UA_Client *client, const char *endpointUrl,
  106. const char *username, const char *password);
  107. /* Disconnect and close a connection to the selected server */
  108. UA_StatusCode UA_EXPORT
  109. UA_Client_disconnect(UA_Client *client);
  110. UA_StatusCode UA_EXPORT
  111. UA_Client_disconnect_async(UA_Client *client, UA_UInt32 *requestId);
  112. /* Close a connection to the selected server */
  113. UA_DEPRECATED static UA_INLINE UA_StatusCode
  114. UA_Client_close(UA_Client *client) {
  115. return UA_Client_disconnect(client);
  116. }
  117. /**
  118. * Discovery
  119. * --------- */
  120. /* Gets a list of endpoints of a server
  121. *
  122. * @param client to use. Must be connected to the same endpoint given in
  123. * serverUrl or otherwise in disconnected state.
  124. * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  125. * @param endpointDescriptionsSize size of the array of endpoint descriptions
  126. * @param endpointDescriptions array of endpoint descriptions that is allocated
  127. * by the function (you need to free manually)
  128. * @return Indicates whether the operation succeeded or returns an error code */
  129. UA_StatusCode UA_EXPORT
  130. UA_Client_getEndpoints(UA_Client *client, const char *serverUrl,
  131. size_t* endpointDescriptionsSize,
  132. UA_EndpointDescription** endpointDescriptions);
  133. /* Gets a list of all registered servers at the given server.
  134. *
  135. * You can pass an optional filter for serverUris. If the given server is not registered,
  136. * an empty array will be returned. If the server is registered, only that application
  137. * description will be returned.
  138. *
  139. * Additionally you can optionally indicate which locale you want for the server name
  140. * in the returned application description. The array indicates the order of preference.
  141. * A server may have localized names.
  142. *
  143. * @param client to use. Must be connected to the same endpoint given in
  144. * serverUrl or otherwise in disconnected state.
  145. * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  146. * @param serverUrisSize Optional filter for specific server uris
  147. * @param serverUris Optional filter for specific server uris
  148. * @param localeIdsSize Optional indication which locale you prefer
  149. * @param localeIds Optional indication which locale you prefer
  150. * @param registeredServersSize size of returned array, i.e., number of found/registered servers
  151. * @param registeredServers array containing found/registered servers
  152. * @return Indicates whether the operation succeeded or returns an error code */
  153. UA_StatusCode UA_EXPORT
  154. UA_Client_findServers(UA_Client *client, const char *serverUrl,
  155. size_t serverUrisSize, UA_String *serverUris,
  156. size_t localeIdsSize, UA_String *localeIds,
  157. size_t *registeredServersSize,
  158. UA_ApplicationDescription **registeredServers);
  159. #ifdef UA_ENABLE_DISCOVERY
  160. /* Get a list of all known server in the network. Only supported by LDS servers.
  161. *
  162. * @param client to use. Must be connected to the same endpoint given in
  163. * serverUrl or otherwise in disconnected state.
  164. * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  165. * @param startingRecordId optional. Only return the records with an ID higher
  166. * or equal the given. Can be used for pagination to only get a subset of
  167. * the full list
  168. * @param maxRecordsToReturn optional. Only return this number of records
  169. * @param serverCapabilityFilterSize optional. Filter the returned list to only
  170. * get servers with given capabilities, e.g. "LDS"
  171. * @param serverCapabilityFilter optional. Filter the returned list to only get
  172. * servers with given capabilities, e.g. "LDS"
  173. * @param serverOnNetworkSize size of returned array, i.e., number of
  174. * known/registered servers
  175. * @param serverOnNetwork array containing known/registered servers
  176. * @return Indicates whether the operation succeeded or returns an error code */
  177. UA_StatusCode UA_EXPORT
  178. UA_Client_findServersOnNetwork(UA_Client *client, const char *serverUrl,
  179. UA_UInt32 startingRecordId, UA_UInt32 maxRecordsToReturn,
  180. size_t serverCapabilityFilterSize, UA_String *serverCapabilityFilter,
  181. size_t *serverOnNetworkSize, UA_ServerOnNetwork **serverOnNetwork);
  182. #endif
  183. /**
  184. * .. _client-services:
  185. *
  186. * Services
  187. * --------
  188. *
  189. * The raw OPC UA services are exposed to the client. But most of them time, it
  190. * is better to use the convenience functions from ``ua_client_highlevel.h``
  191. * that wrap the raw services. */
  192. /* Don't use this function. Use the type versions below instead. */
  193. void UA_EXPORT
  194. __UA_Client_Service(UA_Client *client, const void *request,
  195. const UA_DataType *requestType, void *response,
  196. const UA_DataType *responseType);
  197. /*
  198. * Attribute Service Set
  199. * ^^^^^^^^^^^^^^^^^^^^^ */
  200. static UA_INLINE UA_ReadResponse
  201. UA_Client_Service_read(UA_Client *client, const UA_ReadRequest request) {
  202. UA_ReadResponse response;
  203. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_READREQUEST],
  204. &response, &UA_TYPES[UA_TYPES_READRESPONSE]);
  205. return response;
  206. }
  207. static UA_INLINE UA_WriteResponse
  208. UA_Client_Service_write(UA_Client *client, const UA_WriteRequest request) {
  209. UA_WriteResponse response;
  210. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_WRITEREQUEST],
  211. &response, &UA_TYPES[UA_TYPES_WRITERESPONSE]);
  212. return response;
  213. }
  214. /*
  215. * Historical Access Service Set
  216. * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  217. #ifdef UA_ENABLE_HISTORIZING
  218. static UA_INLINE UA_HistoryReadResponse
  219. UA_Client_Service_historyRead(UA_Client *client, const UA_HistoryReadRequest request) {
  220. UA_HistoryReadResponse response;
  221. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_HISTORYREADREQUEST],
  222. &response, &UA_TYPES[UA_TYPES_HISTORYREADRESPONSE]);
  223. return response;
  224. }
  225. static UA_INLINE UA_HistoryUpdateResponse
  226. UA_Client_Service_historyUpdate(UA_Client *client, const UA_HistoryUpdateRequest request) {
  227. UA_HistoryUpdateResponse response;
  228. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_HISTORYUPDATEREQUEST],
  229. &response, &UA_TYPES[UA_TYPES_HISTORYUPDATERESPONSE]);
  230. return response;
  231. }
  232. #endif
  233. /*
  234. * Method Service Set
  235. * ^^^^^^^^^^^^^^^^^^ */
  236. #ifdef UA_ENABLE_METHODCALLS
  237. static UA_INLINE UA_CallResponse
  238. UA_Client_Service_call(UA_Client *client, const UA_CallRequest request) {
  239. UA_CallResponse response;
  240. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_CALLREQUEST],
  241. &response, &UA_TYPES[UA_TYPES_CALLRESPONSE]);
  242. return response;
  243. }
  244. #endif
  245. /*
  246. * NodeManagement Service Set
  247. * ^^^^^^^^^^^^^^^^^^^^^^^^^^ */
  248. static UA_INLINE UA_AddNodesResponse
  249. UA_Client_Service_addNodes(UA_Client *client, const UA_AddNodesRequest request) {
  250. UA_AddNodesResponse response;
  251. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_ADDNODESREQUEST],
  252. &response, &UA_TYPES[UA_TYPES_ADDNODESRESPONSE]);
  253. return response;
  254. }
  255. static UA_INLINE UA_AddReferencesResponse
  256. UA_Client_Service_addReferences(UA_Client *client,
  257. const UA_AddReferencesRequest request) {
  258. UA_AddReferencesResponse response;
  259. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_ADDREFERENCESREQUEST],
  260. &response, &UA_TYPES[UA_TYPES_ADDREFERENCESRESPONSE]);
  261. return response;
  262. }
  263. static UA_INLINE UA_DeleteNodesResponse
  264. UA_Client_Service_deleteNodes(UA_Client *client,
  265. const UA_DeleteNodesRequest request) {
  266. UA_DeleteNodesResponse response;
  267. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_DELETENODESREQUEST],
  268. &response, &UA_TYPES[UA_TYPES_DELETENODESRESPONSE]);
  269. return response;
  270. }
  271. static UA_INLINE UA_DeleteReferencesResponse
  272. UA_Client_Service_deleteReferences(UA_Client *client,
  273. const UA_DeleteReferencesRequest request) {
  274. UA_DeleteReferencesResponse response;
  275. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_DELETEREFERENCESREQUEST],
  276. &response, &UA_TYPES[UA_TYPES_DELETEREFERENCESRESPONSE]);
  277. return response;
  278. }
  279. /*
  280. * View Service Set
  281. * ^^^^^^^^^^^^^^^^ */
  282. static UA_INLINE UA_BrowseResponse
  283. UA_Client_Service_browse(UA_Client *client, const UA_BrowseRequest request) {
  284. UA_BrowseResponse response;
  285. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_BROWSEREQUEST],
  286. &response, &UA_TYPES[UA_TYPES_BROWSERESPONSE]);
  287. return response;
  288. }
  289. static UA_INLINE UA_BrowseNextResponse
  290. UA_Client_Service_browseNext(UA_Client *client,
  291. const UA_BrowseNextRequest request) {
  292. UA_BrowseNextResponse response;
  293. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_BROWSENEXTREQUEST],
  294. &response, &UA_TYPES[UA_TYPES_BROWSENEXTRESPONSE]);
  295. return response;
  296. }
  297. static UA_INLINE UA_TranslateBrowsePathsToNodeIdsResponse
  298. UA_Client_Service_translateBrowsePathsToNodeIds(UA_Client *client,
  299. const UA_TranslateBrowsePathsToNodeIdsRequest request) {
  300. UA_TranslateBrowsePathsToNodeIdsResponse response;
  301. __UA_Client_Service(client, &request,
  302. &UA_TYPES[UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSREQUEST],
  303. &response,
  304. &UA_TYPES[UA_TYPES_TRANSLATEBROWSEPATHSTONODEIDSRESPONSE]);
  305. return response;
  306. }
  307. static UA_INLINE UA_RegisterNodesResponse
  308. UA_Client_Service_registerNodes(UA_Client *client,
  309. const UA_RegisterNodesRequest request) {
  310. UA_RegisterNodesResponse response;
  311. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_REGISTERNODESREQUEST],
  312. &response, &UA_TYPES[UA_TYPES_REGISTERNODESRESPONSE]);
  313. return response;
  314. }
  315. static UA_INLINE UA_UnregisterNodesResponse
  316. UA_Client_Service_unregisterNodes(UA_Client *client,
  317. const UA_UnregisterNodesRequest request) {
  318. UA_UnregisterNodesResponse response;
  319. __UA_Client_Service(client, &request,
  320. &UA_TYPES[UA_TYPES_UNREGISTERNODESREQUEST],
  321. &response, &UA_TYPES[UA_TYPES_UNREGISTERNODESRESPONSE]);
  322. return response;
  323. }
  324. /*
  325. * Query Service Set
  326. * ^^^^^^^^^^^^^^^^^ */
  327. #ifdef UA_ENABLE_QUERY
  328. static UA_INLINE UA_QueryFirstResponse
  329. UA_Client_Service_queryFirst(UA_Client *client,
  330. const UA_QueryFirstRequest request) {
  331. UA_QueryFirstResponse response;
  332. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_QUERYFIRSTREQUEST],
  333. &response, &UA_TYPES[UA_TYPES_QUERYFIRSTRESPONSE]);
  334. return response;
  335. }
  336. static UA_INLINE UA_QueryNextResponse
  337. UA_Client_Service_queryNext(UA_Client *client,
  338. const UA_QueryNextRequest request) {
  339. UA_QueryNextResponse response;
  340. __UA_Client_Service(client, &request, &UA_TYPES[UA_TYPES_QUERYFIRSTREQUEST],
  341. &response, &UA_TYPES[UA_TYPES_QUERYFIRSTRESPONSE]);
  342. return response;
  343. }
  344. #endif
  345. /**
  346. * .. _client-async-services:
  347. *
  348. * Asynchronous Services
  349. * ---------------------
  350. * All OPC UA services are asynchronous in nature. So several service calls can
  351. * be made without waiting for a response first. Responess may come in a
  352. * different ordering. */
  353. /* Use the type versions of this method. See below. However, the general
  354. * mechanism of async service calls is explained here.
  355. *
  356. * We say that an async service call has been dispatched once this method
  357. * returns UA_STATUSCODE_GOOD. If there is an error after an async service has
  358. * been dispatched, the callback is called with an "empty" response where the
  359. * statusCode has been set accordingly. This is also done if the client is
  360. * shutting down and the list of dispatched async services is emptied.
  361. *
  362. * The statusCode received when the client is shutting down is
  363. * UA_STATUSCODE_BADSHUTDOWN.
  364. *
  365. * The statusCode received when the client don't receive response
  366. * after specified config->timeout (in ms) is
  367. * UA_STATUSCODE_BADTIMEOUT.
  368. *
  369. * Instead, you can use __UA_Client_AsyncServiceEx to specify
  370. * a custom timeout
  371. *
  372. * The userdata and requestId arguments can be NULL. */
  373. UA_StatusCode UA_EXPORT
  374. __UA_Client_AsyncService(UA_Client *client, const void *request,
  375. const UA_DataType *requestType,
  376. UA_ClientAsyncServiceCallback callback,
  377. const UA_DataType *responseType,
  378. void *userdata, UA_UInt32 *requestId);
  379. UA_StatusCode UA_EXPORT
  380. UA_Client_sendAsyncRequest(UA_Client *client, const void *request,
  381. const UA_DataType *requestType, UA_ClientAsyncServiceCallback callback,
  382. const UA_DataType *responseType, void *userdata, UA_UInt32 *requestId);
  383. /* Listen on the network and process arriving asynchronous responses in the
  384. * background. Internal housekeeping, renewal of SecureChannels and subscription
  385. * management is done as well. */
  386. UA_StatusCode UA_EXPORT
  387. UA_Client_run_iterate(UA_Client *client, UA_UInt16 timeout);
  388. UA_DEPRECATED static UA_INLINE UA_StatusCode
  389. UA_Client_runAsync(UA_Client *client, UA_UInt16 timeout) {
  390. return UA_Client_run_iterate(client, timeout);
  391. }
  392. UA_DEPRECATED static UA_INLINE UA_StatusCode
  393. UA_Client_manuallyRenewSecureChannel(UA_Client *client) {
  394. return UA_Client_run_iterate(client, 0);
  395. }
  396. /* Use the type versions of this method. See below. However, the general
  397. * mechanism of async service calls is explained here.
  398. *
  399. * We say that an async service call has been dispatched once this method
  400. * returns UA_STATUSCODE_GOOD. If there is an error after an async service has
  401. * been dispatched, the callback is called with an "empty" response where the
  402. * statusCode has been set accordingly. This is also done if the client is
  403. * shutting down and the list of dispatched async services is emptied.
  404. *
  405. * The statusCode received when the client is shutting down is
  406. * UA_STATUSCODE_BADSHUTDOWN.
  407. *
  408. * The statusCode received when the client don't receive response
  409. * after specified timeout (in ms) is
  410. * UA_STATUSCODE_BADTIMEOUT.
  411. *
  412. * The timeout can be disabled by setting timeout to 0
  413. *
  414. * The userdata and requestId arguments can be NULL. */
  415. UA_StatusCode UA_EXPORT
  416. __UA_Client_AsyncServiceEx(UA_Client *client, const void *request,
  417. const UA_DataType *requestType,
  418. UA_ClientAsyncServiceCallback callback,
  419. const UA_DataType *responseType,
  420. void *userdata, UA_UInt32 *requestId,
  421. UA_UInt32 timeout);
  422. /**
  423. * Timed Callbacks
  424. * ---------------
  425. * Repeated callbacks can be attached to a client and will be executed in the
  426. * defined interval. */
  427. typedef void (*UA_ClientCallback)(UA_Client *client, void *data);
  428. /* Add a callback for execution at a specified time. If the indicated time lies
  429. * in the past, then the callback is executed at the next iteration of the
  430. * server's main loop.
  431. *
  432. * @param client The client object.
  433. * @param callback The callback that shall be added.
  434. * @param data Data that is forwarded to the callback.
  435. * @param date The timestamp for the execution time.
  436. * @param callbackId Set to the identifier of the repeated callback . This can
  437. * be used to cancel the callback later on. If the pointer is null, the
  438. * identifier is not set.
  439. * @return Upon success, UA_STATUSCODE_GOOD is returned. An error code
  440. * otherwise. */
  441. UA_StatusCode UA_EXPORT
  442. UA_Client_addTimedCallback(UA_Client *client, UA_ClientCallback callback,
  443. void *data, UA_DateTime date, UA_UInt64 *callbackId);
  444. /* Add a callback for cyclic repetition to the client.
  445. *
  446. * @param client The client object.
  447. * @param callback The callback that shall be added.
  448. * @param data Data that is forwarded to the callback.
  449. * @param interval_ms The callback shall be repeatedly executed with the given
  450. * interval (in ms). The interval must be positive. The first execution
  451. * occurs at now() + interval at the latest.
  452. * @param callbackId Set to the identifier of the repeated callback . This can
  453. * be used to cancel the callback later on. If the pointer is null, the
  454. * identifier is not set.
  455. * @return Upon success, UA_STATUSCODE_GOOD is returned. An error code
  456. * otherwise. */
  457. UA_StatusCode UA_EXPORT
  458. UA_Client_addRepeatedCallback(UA_Client *client, UA_ClientCallback callback,
  459. void *data, UA_Double interval_ms,
  460. UA_UInt64 *callbackId);
  461. UA_StatusCode UA_EXPORT
  462. UA_Client_changeRepeatedCallbackInterval(UA_Client *client,
  463. UA_UInt64 callbackId,
  464. UA_Double interval_ms);
  465. void UA_EXPORT
  466. UA_Client_removeCallback(UA_Client *client, UA_UInt64 callbackId);
  467. #define UA_Client_removeRepeatedCallback(client, callbackId) \
  468. UA_Client_removeCallback(client, callbackId)
  469. /**
  470. * .. toctree::
  471. *
  472. * client_highlevel
  473. * client_subscriptions */
  474. _UA_END_DECLS
  475. #endif /* UA_CLIENT_H_ */