# Sigfox

This pages describes how to connect the Sigfox account to akenza. The following steps are explained in more detail:

1. [Create a Sigfox data flow](#1.-create-a-sigfox-dataflow)
2. [Create a Sigfox device on akenza](#2.-create-the-sigfox-device-on-akenza)
3. [Add a callback to a Sigfox device type](#3.-add-a-callback-to-the-sigfox-device-type)

### 1. Create a Sigfox data flow

Go to *Data Flows* and choose Sigfox as a device connector.\
Copy the *Uplink URL* and delete the last part (\&deviceId=\&topic=default). This will be used at a later stage.\
Search for the compatible Sigfox device type or create a [custom device type](https://docs.akenza.io/akenza.io/get-started/your-data-flow/device-type/device-type) and select an output connector as the data destination of the [Data Flow](https://docs.akenza.io/akenza.io/get-started/your-data-flow).

![Data Flow with Sigfox as device connector](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FWlc1kLKsgUWG6I0HrNSk%2Fimage.png?alt=media\&token=b0e9a821-5d78-4b19-a3ae-9f79133ffbd4)

### 2. Create a Sigfox device on akenza

Go to *Assets* and proceed with the creation of a new device.&#x20;

{% hint style="warning" %}
Make sure to use the same **Device ID** as Sigfox.
{% endhint %}

![Add device ID](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FjWC7kW3YE8YhtmvjM1H1%2Fimage.png?alt=media\&token=49c73d3e-2a9e-405d-ace4-870ca889b5ae)

### **3.** Add a callback to a Sigfox device type

Edit the device type, that your device is using on the [Sigfox backend](https://backend.sigfox.com/devicetype/list) and add a callback.

Following configurations:\
Type = DATA UPLINK\
Channel = URL\
Custom payload config = leave empty\
Url pattern = the URL you copied in Step 1\
Use HTTP Method = POST\
Send SNI = Check\
Headers = leave empty\
Content type = application/json\
Body = `{ "cmd" : "data", "device" : "{device}", "time" : {time}, "data": "{data}" }`

![Device Type Callback](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FbyhPfd0TUhwdflPcZdST%2Fscreely-1650621928674_SF1.png?alt=media\&token=ca9d9661-ce67-4b58-a059-fde6f0a6f14b)

The Sigfox device is now connected to akenza. To check incoming data, select your device in *Assets* and view the **device detail page**.
