# Decrypting messages for dummies

**URL:** <https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894>\
**Category:** Uncategorized\
**Created:** [January 17, 2017, 8:47pm UTC](https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894 "2017-01-17T20:47:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Roberto69](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/roberto69/32/44922_2.png) [@Roberto69](https://www.thethingsnetwork.org/forum/u/Roberto69)\
**Post date:** [January 18, 2017, 12:41pm UTC](https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894/3 "2017-01-18T12:41:27Z")

</div>

Thank you a lot, you have really clarified some basic facts. For this purpose is LoraEncoder function - for example to change measured value to number representation of this value, isn’t it?  
To be sure that this is the right way: way from measured Temp=23.45 to 0x09 0x29 on the TTN Application data page with as small payload as it possible is (from Arduino):

float Temp = 23.45;  
LoraEncoder encoder(buffer);  
encoder.writeTemperature(Temp);  
LMIC\_setTxData2(1, buffer, strlen((char \*)buffer), 0);

It is not clear to me how Decoder in Payload Function shows the right value for the temperature but the field in Data page showing me {“celcius”:105.05} in the same time. Did i done something wrong? Your help is really appreciated.

Thank you,  
Roberto

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894)._
