# Generic M2M device

![Generic M2M device](https://portal.kpnthings.com/assets/images/device-types/own-m2m.png)

Connect your own M2M device to KPN Things.

* Supported network type(s): `KPNM2M`
* Device Specification ID: `own-m2m`
* Device Specification UUID: `7748b913-3901-4cbd-be66-96d366e85539`

| Decoders                                   | decoderSpecificationUUID               | Description                                                                         |
| ------------------------------------------ | -------------------------------------- | ----------------------------------------------------------------------------------- |
| › Decoded ThingsML and raw SenML data      | `755d9cc5-e5cf-4a42-88dc-bb17458c58fe` | One decoder to forward raw SenML data and decoded ThingsML data sent by the device. |
| › Decoded ThingsML and raw SenML data (v2) | `52a80810-0225-5831-9596-c07d8a746f10` | Decoder that forwards raw SenML data and decoded ThingsML data sent by the device.  |

| Encoders     | encoderSpecificationUUID               | Description                     |
| ------------ | -------------------------------------- | ------------------------------- |
| = SenML data | `58e00104-d1ce-4a8f-acc0-8fe860b9ba88` | Send SenML data to your device. |

### › Decoded ThingsML and raw SenML data

One decoder to forward raw SenML data and decoded ThingsML data sent by the device.

### › Decoded ThingsML and raw SenML data (v2)

Decoder that forwards raw SenML data and decoded ThingsML data sent by the device.

#### Example SenML

{% hint style="info" %}
SenML can be structured in different ways, and we do not guarantee the examples below will look the same as what you will receive on your Destination. To make sure you can handle the SenML optimally, take a look at our documentation about [Understanding and Interpreting SenML Data](/kpn-things/building-blocks/data-processing/thingsml-and-senml/senml/understanding-and-interpreting-senml-data.md).
{% endhint %}

## Example SenML

This is completely dependent on the SenML or ThingsML input and could output almost any SenML. The decoded ThingsML below is just illustrative of what is possible.

```json
[
    {
        "bn": "urn:dev:DEVEUI:fe782a953c642aeb:",
        "bt": 1693136532.83,
        "n": "latitude",
        "u": "lat",
        "v": 51.90717
    },
    {
        "n": "longitude",
        "u": "lon",
        "v": 4.48940
    },
    {
        "n": "temperature",
        "u": "Cel",
        "v": 29.75
    },
    {
        "n": "batteryVoltage",
        "u": "V",
        "v": 3.59
    },
    {
        "n": "extTemp",
        "u": "Cel",
        "v": 17.22
    },
    {
        "n": "io",
        "vb": false
    }
]
```

### = SenML data encoding

* Protocol: HTTP response
* Description: Send SenML data to your device.
* Multiple commands in one downlink: No
* No input mapping


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kpnthings.com/kpn-things/building-blocks/devices/sensors/generic-m2m-device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
