Skip to content

Instantly share code, notes, and snippets.

@ali-cs
Created September 10, 2019 11:04
Show Gist options
  • Save ali-cs/aafcd1f87d2ee5b3070dac28b877d2e6 to your computer and use it in GitHub Desktop.
Save ali-cs/aafcd1f87d2ee5b3070dac28b877d2e6 to your computer and use it in GitHub Desktop.
MqttConstants
struct MqttConstants {
static let endPoint = "wss://a1pvqgswwsbwvy-ats.iot.eu-west-1.amazonaws.com/mqtt" // "wss:<IotEndpointATS>/mqtt
static let IdentityPool = "eu-west-1:9b8ca290-c620-452c-120c-77c6c442v6fd" // <IdentityPool>
static let UserPool = "<eu-west-1_bHTWQN1lI>" // <UserPool>
static let kMQTTMKey = "MQTTManager" // change to any key as your like :)
static let mqttCognitoKey = "cognito-idp.\(awsRegionString).amazonaws.com/\(UserPool)" // "cognito-idp.<REGION>.amazonaws.com/<UserPool>
static let awsRegion = AWSRegionType.EUWest1
static let awsRegionString = "eu-west-1"
static let clientSecret = "JWT Token" // place your client secret here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment