Skip to content

Instantly share code, notes, and snippets.

@mgwedd

mgwedd/awsiot-6.js Secret

Created Jul 16, 2019
Embed
What would you like to do?
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