ua_mqtt_adapter.h 938 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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) 2018 Fraunhofer IOSB (Author: Lukas Meling)
  6. */
  7. #ifndef UA_PLUGIN_MQTT_H_
  8. #define UA_PLUGIN_MQTT_H_
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "ua_network_pubsub_mqtt.h"
  13. UA_StatusCode
  14. connectMqtt(UA_PubSubChannelDataMQTT*);
  15. UA_StatusCode
  16. disconnectMqtt(UA_PubSubChannelDataMQTT*);
  17. UA_StatusCode
  18. unSubscribeMqtt(UA_PubSubChannelDataMQTT*, UA_String topic);
  19. UA_StatusCode
  20. publishMqtt(UA_PubSubChannelDataMQTT*, UA_String topic, const UA_ByteString *buf, UA_Byte qos);
  21. UA_StatusCode
  22. subscribeMqtt(UA_PubSubChannelDataMQTT*, UA_String topic, UA_Byte qos);
  23. UA_StatusCode
  24. yieldMqtt(UA_PubSubChannelDataMQTT*, UA_UInt16 timeout);
  25. #ifdef __cplusplus
  26. } // extern "C"
  27. #endif
  28. #endif /* UA_PLUGIN_MQTT_H_ */