Skip to content

Commit

Permalink
Update for backend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
angelsl committed Jul 18, 2021
1 parent 36bc6de commit 9eeed34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/start-sling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
chmod 644 "$SLING_SECRET_FILE"

SLING_SECRET=$(cat "$SLING_SECRET_FILE")
SLING_BACKEND="https://api.sourceacademy.nus.edu.sg/v1/devices/$SLING_SECRET"
SLING_BACKEND="https://api.sourceacademy.nus.edu.sg/v2/devices/$SLING_SECRET"

export SLING_HOST="$(curl -fs "$SLING_BACKEND/mqtt_endpoint")"
export SLING_DEVICE_ID="$(curl -fs "$SLING_BACKEND/client_id")"
Expand Down

0 comments on commit 9eeed34

Please sign in to comment.