# Chirpstack

## **Connecting Chirpstack V4 to MClimate’s LoRaWAN broker**

### **1. Create a new application**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FoMGWqz3cCtxcQsa1AbQa%2FScreenshot%202023-02-19%20at%2014.29.14.png?alt=media\&token=00d3a54e-b4bf-44bd-b196-03784c9fc5c4)

### **2. Go to API Keys and create new key**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2F9wnDoQdYuJEeKOyYEYrC%2FScreenshot%202023-02-19%20at%2014.29.44.png?alt=media\&token=4ba2ca3d-f842-4882-8c63-0c3ddc7630ac)

### **3. Copy Token**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FJXTPCgg5w5actKINflpo%2FScreenshot%202023-02-19%20at%2014.30.05.png?alt=media\&token=5acd9771-8a9a-48e0-b96f-0869add7426d)

### **4. Click on "add" in integrations tab in created application**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FPcUYh8pqsClEPI8ZMRtY%2FScreenshot%202023-02-19%20at%2014.31.33.png?alt=media\&token=d69c64e8-b829-45b3-8ff5-50b6e60642bd)

### **5. Add HTTP integration**

* Fill the fields&#x20;
  * Payload marshaler - **JSON**
  * Endpoint URL - **<https://lorawan-broker.mclimate.eu/chirpstack>**
  * Headers
    * header name - **m-token**, header value - **copied M Token from** [**MClimate Enterprise->Integrations**](https://enterprise.mclimate.eu/integrations)
    * header name - **token**, header value - **copied API Token**
    * header name - **url,** header value - **your** [**ChirpStack Application Server**](https://www.chirpstack.io/application-server/api/) **Url with exposed port 8090**\
      **( example: <http://212.39.89.221:8090> )**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2Fjhrz1tePPbhs3dxtEi2A%2F123.png?alt=media\&token=99222724-fd80-40cf-9b17-727b95d7ee94)

### **6. Done**

##

## **Connecting Chirpstack V3 to MClimate’s LoRaWAN broker**

### **1. Create a new application**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McDr-jr9h3qA888r1Yp%2F-Mcx5kx1Ki3Bo2aEeKBH%2F-McxBOh2hvRqYN-ITUj6%2FScreenshot%202021-06-24%20at%2011.27.30.png?alt=media\&token=5d307cc0-4593-42f9-8254-0a66470519a9)

### **2. Go to API Keys and create new key**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McDr-jr9h3qA888r1Yp%2F-Mcx5kx1Ki3Bo2aEeKBH%2F-McxDwXXoYCUsI_ZL3V9%2FScreenshot%202021-06-24%20at%2011.37.47.png?alt=media\&token=70e51289-6a26-4e1c-86ec-4d90c3e5eb4f)

### **3. Copy Token**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McDr-jr9h3qA888r1Yp%2F-Mcx5kx1Ki3Bo2aEeKBH%2F-McxEDeUDws2YwkKVZkI%2FScreenshot%202021-06-24%20at%2011.38.08.png?alt=media\&token=4fcc324d-771d-4603-b017-f38ed72e8b0a)

### **4. Click on "add" in integrations tab in created application**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McDr-jr9h3qA888r1Yp%2F-Mcx5kx1Ki3Bo2aEeKBH%2F-McxCuFel3JV0ANt2yG5%2FScreenshot%202021-06-24%20at%2011.28.03.png?alt=media\&token=da25ee00-b591-44c0-8873-4ebd589653cb)

### **5. Add HTTP integration**

Fill the fields&#x20;

* Payload marshaler - **JSON**
* Endpoint URL - **<https://lorawan-broker.mclimate.eu/chirpstack>**
* Headers
  * header name - **m-token**, header value - **copied M Token from** [**MClimate Enterprise->Integrations**](https://enterprise.mclimate.eu/integrations)
  * header name - **token**, header value - **copied API Token**
  * header name - **url,** header value - **your** [**ChirpStack Application Server**](https://www.chirpstack.io/application-server/api/) **Url with exposed port 8080**\
    **( example: <http://212.39.89.221:8080> )**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2Famun4mRR3ova0owvjJ2u%2F123.png?alt=media\&token=dc56ca3c-973f-449b-a7e9-ce54ded91d2b)

### **5. Done**
