# How can I correctly cast my value in byte before sending

**URL:** <https://www.thethingsnetwork.org/forum/t/how-can-i-correctly-cast-my-value-in-byte-before-sending/14766>\
**Category:** LMIC\
**Created:** [June 2, 2018, 9:13pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-correctly-cast-my-value-in-byte-before-sending/14766 "2018-06-02T21:13:41Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [June 4, 2018, 4:18pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-correctly-cast-my-value-in-byte-before-sending/14766/11 "2018-06-04T16:18:29Z")

</div>

> [@pierrot10](#):
>
> Where did you find this?
> 
> > var str=String.fromCharCode.apply(null,bytes);

Are you kidding me? It’s in your very own post!

> [@pierrot10](#):
>
> that cause to have string?
> 
> `(char *)`

No. I’ve tried to explain to you September last year: [What is the maximum number of characters I can send with LMiC? - #5 by pierrot10](https://www.thethingsnetwork.org/forum/t/what-is-the-maximum-number-of-characters-i-can-send-with-lmic/9537/5) Sorry, that’s all I’ll explain; signing off here.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/how-can-i-correctly-cast-my-value-in-byte-before-sending/14766)._
