Milesight
Last updated
Last updated
Copy the token.
Depending on your device firmware the fields values in this section are different, make sure you follow the instructions that match your firmware version. You can see it in the Status page.
Type - HTTP
m-token: your token from Enterprise (Step 1)
username: apiuser (this is not an example it is static for all gateways)
password: password (this is not an example it is static for all gateways)
url: the public IP address of the gateway (ex: 212.39.89.221)
Make sure that the IP is exposed and accessible from outside of your LAN. We need it for sending downlinks, if you are behind a NAT check your router for the public IP (the local one would not work).
A correctly filled out example is shown in the image below.
With these newer Firmware devices you would need an AES-128 bit encrypted password. Using the link below you can easily generate one:
Fill in the parameters from the table below:
A correctly filled out form would look as the one in the image below. Press the Encrypt button and you will be given a string to copy from the Encrypted Text field.
Type - HTTP
m-token: your token from Enterprise (Step 1)
username: your gateway login username
password: your gateway login password that we encrypted in the previous step
url: the public IP address of the gateway (ex: 212.39.89.221)
Make sure that the IP is exposed and accessible from outside of your LAN. We need it for sending downlinks, if you are behind a NAT check your router for the public IP (the local one would not work).
A correctly filled out example is shown in the image below.
The uplink data URL should be:
https://lorawan-broker.mclimate.eu/milesight
Parameter | Value |
---|---|
Encryption text
THE LOGIN PASSWORD FOR THE GATEWAY
Secret Key
1111111111111111 (static value)
Encryption Key Size
128 Bits
Encryption Mode
CBC
IV (optional)
2222222222222222 (static value)
Output format
Base64