Add test certificate.
Use HTTPS instead of HTTP.
Update URLs for HTTPS.
Rename function.
Pass login token and gateway details to client.
Comment
Remove comment.
Comment
Attempt connection to gateway after login.
Use HTTPS instead of HTTP.
Group similar code.
Send token to gateway server.
Print request responses to console.
Delete token once used and prevent possible double login case.
Typo
Modify comment.
Disable reconnecting for gateway to zone connection.
Nest logic.
Improve comment.