Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
move topic name to variables at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
jerwallace committed Jul 1, 2016
1 parent 188fbd8 commit c80fb9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ software license above.
var COGNITO_IDENTITY_POOL = '<YOUR_COGNITO_IDENTITY_POOL_ID>';
var IOT_REGION = 'us-east-1';
var IOTENDPOINT = 'data.iot.'+IOT_REGION+'.amazonaws.com';
var TOPIC = 'sbs';

// ============ REST OF CODE =============== //

// Smoothie Settings
Expand Down Expand Up @@ -201,7 +203,7 @@ function initClient(requestUrl) {
var connectOptions = {
onSuccess: function () {
console.log('connected');
client.subscribe('sbs/#');
client.subscribe(TOPIC+'/#');
},
useSSL: true,
timeout: 16,
Expand Down

0 comments on commit c80fb9b

Please sign in to comment.