# Uplink-PayLoadFormatter

**URL:** <https://www.thethingsnetwork.org/forum/t/uplink-payloadformatter/60712>\
**Category:** Uncategorized\
**Tags:** ttn-mapper\
**Created:** [January 2, 2023, 11:23am UTC](https://www.thethingsnetwork.org/forum/t/uplink-payloadformatter/60712 "2023-01-02T11:23:54Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [January 2, 2023, 8:02pm UTC](https://www.thethingsnetwork.org/forum/t/uplink-payloadformatter/60712/17 "2023-01-02T20:02:56Z")

</div>

Here are a few more post to read

> [@Payload Formats \[HowTo\]](https://www.thethingsnetwork.org/forum/t/payload-formats-howto/3441/3):
>
> It’s JavaScript (ECMAScript 5) [indeed](https://github.com/TheThingsNetwork/ttn/blob/master/core/handler/application/application.go). For uplinks: Decoder is a JavaScript function that accepts the payload as byte array and returns an object containing the decoded values. It [gets passed](https://www.thethingsnetwork.org/forum/t/payload-functions/5277/2): First parameter, typically called bytes: the binary payload as an array of numbers. Each number is a byte, 0 to 255 in decimal notation, which is the same as 0x00 to 0xFF in hexadecimal notitation. Second parameter, typically called port: the [port number](https://www.lora-alliance.org/portals/0/specs/LoRaWAN%20Specification%201R0.pdf#page=20) from 1 to 223. Converter is a JavaScript functi…

> [@How to send payload in Hex-format?](https://www.thethingsnetwork.org/forum/t/how-to-send-payload-in-hex-format/8534/4):
>
> You cannot change that. But why would you? Just decode it, and you’ll get the binary data, exactly as the node has sent it. Like, for example, the 32 bits binary data 00001001 10100110 00001100 110100102: cannot be printed on the screen as plain text, as in [the ASCII standard](https://en.wikipedia.org/wiki/ASCII) binary 000010012 is the tab character, 000011002 is a form feed, and 101001102 and 110100102 are too large and not defined (but in [ISO/IEC 8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) could [be](https://www.ascii-code.com/) ¦ and Ò, or in [ISO/IEC 8859-2](https://en.wikipedia.org/wiki/ISO/IEC_8859-2) would be Ś and Ň, and in [ISO/IEC …](https://en.wikipedia.org/wiki/ISO/IEC_8859-5)

Try it and if you don’t win post what you tried.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/uplink-payloadformatter/60712)._
