func publishMessage(message: String!, topic: String!) { | |
let dataManager = AWSIoTDataManager(forKey: "kDataManager") | |
dataManager.publishString(message, onTopic: topic, qoS: .messageDeliveryAttemptedAtLeastOnce) // Set QoS as needed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment