# Addressing conventions

## For simple nets

There are two ways of specifying the sender and destination address: long address and short address.

### Long address

Specifies the 32bit module serial number (32bit) of the TWELITE. The address can be obtained by ToCoNet\_u32GetSerial() API.

It is also the 7-digit hexadecimal S/N (serial number) displayed on the shield can of the TWELITE module plus 0x80000000. For example, a serial number of 1012ABC would be 0x81012ABC.

{% hint style="warning" %}
When the destination is specified as long, the payload size of the packet becomes small. ([Maximum length of a packet](/en/twelite-net-api-expl/paketto/pakettono.md))
{% endhint %}

{% hint style="info" %}
IEEE802.15.4 standard uses 64bit MAC address. 64bit MAC address is specified based on 32bit module address.
{% endhint %}

### Short address

Addresses between 0x0000 and 0x0FFF can be specified. The address is set to [`sToCoNet_AppContext.u16ShortAddress`](/en/twelite-net-api-ref/gou-zao-ti/stoconet_appcontext.md) in the [`cbAppColdStart()`](/en/twelite-net-api-ref/krubakku/cbappcoldstart.md) function.

### broadcast communication（Short address of 0xFFFF）

This address is used for broadcast communication.

## For simple nets

The long address is mostly used for LayerTree Relay net, where some [special addresses](/en/twelite-net-api-expl/nettowkunitsuite/netto-1/nettonoadoresu.md) is defined.

see [Relay net](/en/twelite-net-api-expl/nettowkunitsuite/netto-1.md) for details.


---

# 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://sdk.twelite.info/en/twelite-net-api-expl/paketto/adoresuno.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.
