Configuring the Network Server Stack – Google Cloud Platform

You are here:
< Back

Connecting to the Web Interface

Once you have created an instance of the Network Server Stack, the web configuration interface will be opened on port 80, so you should be able to access it by visiting http://<vm public ip>.

Creating an Application

Applications act a means to group a set of LoRa devices and allow those devices to connect to the OccamSmart server. After creating an account and logging in, you can create an application by clicking on the Create New Application button at the bottom of the Applications view. This will open the Create Application dialog.

There are three field in this dialog: the Application Name is a human-readable name for you to identify your application with, the Application EUI is a unique identifier that is used by the server to refer to you application, and the Access Key is a secret key that is used as your password when connecting to the MQTT broker.

Note that if you intend to use Over-The-Air Activation (OTAA), the Application EUI must match the application EUI configured on your LoRaWAN motes for them to join the network.

The only field you are required to supply is the Application Name. The others will be automatically generated if you don’t fill them in. Once you’ve filled in the Application Name, click the Create button to finish creating your application.
You will see the generated Application EUI and Access Key appear in the previously empty fields, and a message confirming your application was created will appear at the bottom of the dialog.
If you now close the dialog, you will see your application listed with the Application EUI next to the name you gave your application, as well as the Access Key for that application. These are your credentials for connecting an MQTT client to the MQTT broker.

Registering Devices

After an application has been created, you must register any devices with their respective keys to allow them to join the network.

To register a new device on an application, click on that application’s name to navigate to the Devices view, and click the Register New Device button at the bottom of the page.

To register a device which uses Over-The-Air-Activation (OTAA), select the OTAA Device tab. This will require the Device’s DevEUI and AppKey. For a device to connect, it will need to be programmed with the same AppEUI, DevEUI, and AppKey that was entered here.

Similarly, to register a device which uses Activation by Personalization (ABP), select the ABP Device tab. This will require the Device’s DevAddr, AppSKey, and NwkSKey. For a device to connect, it will need to be programmed with the same DevAddr, AppSKey, and NwkSKey that was entered here.

Once you click Register, the new device will be registered, and you can click the X button in the upper right to close the Register Device dialog box, or leave it open and enter new device credentials to register another device.

 

Receiving Data

With your devices registered on the server stack, you can now start receiving data over MQTT.