This directory contains example code for connecting to an SSRA (or SimplySNAP Cloud) managed gateway via the SSRA connection.
To run this code:
-
Edit the
src/index.js
file and provide values for theUSERNAME
,PASSWORD
,SSRA_HOSTNAME
, andGATEWAY_NAME
variables.USERNAME
andPASSWORD
are the email address and password that they use to log in to SSRA or SimplySNAP Cloud.SSRA_HOSTNAME
is one ofsimplysnap.snaplighting.com
(for SSRA) orssra.simplysnapcloud.com
(for SimplySNAP Cloud). TheGATEWAY_NAME
is the human readable name assigned to this gateway by SSRA. -
Install the dependencies for this NodeJS program by running
npm install
in the top-level directory (i.e. where thepackage.json
file is). -
Run the sample program by typing
npm run start
.