Milesight

Connecting Milesight to MClimate’s LoRaWAN broker

1. Go to https://enterprise.mclimate.eu/integrations and create your m-token.

Copy the token.

2. Go to Network Server-> Applications->{your_application}->Add new Data transmission with type HTTP

3. Add headers and URL

Milesgiht Gateway Firmware version

Firmware version ≤ 60.0.0.42-r4 / 56.0.0.3-r1

  • 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)

A correctly filled out example is shown in the image below.

HTTP Header fields

Firmware version ≥ 60.0.0.42-r5 / 56.0.0.4

With these newer Firmware devices you would need an AES-128 bit encrypted password. Using the link below you can easily generate one:

AES encryption tool

Fill in the parameters from the table below:

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

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.

AES-128 bit encrypted password in Base64 form
  • 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)

A correctly filled out example is shown in the image below.

HTTP Header fields

4. Add URL

The uplink data URL should be:

https://lorawan-broker.mclimate.eu/milesight

MClimate URL

5. Done

Last updated

Was this helpful?