In order to demonstrate device services in Everyware Cloud (EC), gateway devices must be registered in the Everyware Cloud console. The following instructions describe how to register gateway devices with EC:
Configure Everyware Cloud (EC)
Create Users and Child Accounts
-
Log in to ec-console with ec-sys/ec-password (or whatever admin credentials you have set up).
-
Add a child account to use. "Child Accounts" → "Add". Take note of the "Account Name" because you will need this for registering gateways.
-
Select the newly created Child Account in the top pane and click the Settings tab in the bottom pane.
-
Select each service and select the "infinite*" setting and then "Save" for each of the following services: VpnConnectionService, AccountService, GroupService, DeviceRegistryService, TagService, UserService, and JobService.
-
In the top right corner of the page click "Everyware Cloud Sysadmin @ec-sys" then "Switch to Account", and select the new Child Account that you created.
-
Add users by clicking "Users" menu, then "Add".
-
For each user that you create, select them in the top pane, and then assign a role by clicking on the "Role" tab in the bottom pane, then "Add". Select from the applicable roles.
Configure Everyware Software Framework (ESF)
Configure Cloud Services in ESF
-
Log in to ESF Console (credentials sent via email)
-
Click "Cloud Services" in left side menu.
-
Under "DataService" tab, change connect.auto-on-startup to true then "Apply".
-
Under "MqttDataService", change the following values:
broker-url = mqtt://ec-broker-mqtt.<project_name>.svc.cluster.local:1883/ topic.context.account-name = <Child Account Name created in EC> username = <gateway username created in EC> password = <password from EC>
-
Click "Apply"
-
Click "Connect"
-
Click on the "Status" at top of left side menu and verify "Service Status" shows CONNECTED.
The broker-url parameter above assumes the gateway is a virtual gateway running in a pod. If you are configuring a physical gateway, you would use port 31883 along with the public IP address or host name: |
broker-url = mqtt://<node's public IP address>:31883/