-
-
Save mgwedd/3346f8c311442592c1a0237f83fe18d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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