0x48 is equal to 72 in decimal,  if you receive them on PC, you can turn
them into 'H'.

2011/2/23 Shamali Gunawardena <[email protected]>

> thanks for the reply. How do you define it.
>
> I tried with just sending one character first. (the variable name is
> character)
>
> 1. char charcter; (doesn't work) - compilation problem
> 2. nx_uint8_t character- assigned the value 'H' and 0x48  to the message.
> In both cases the received value was 72 (the decimal value)
>
> How do I get around that.
>
> regards,
>
> Shamali
> ------------------------------
> *From:* 崔晓宗 <[email protected]>
> *To:* Shamali Gunawardena <[email protected]>;
> [email protected]
> *Sent:* Wed, February 23, 2011 1:49:36 PM
> *Subject:* Re: [Tinyos-help] sending a string from tinyos
>
> you can send the string as a char array, which is similar to sending
> integers.
>
> 2011/2/23 Shamali Gunawardena <[email protected]>
>
>> Hi,
>>
>> This is a pretty basic question. I need to know how I can send a string
>> (eg Hello) in nesC. I know how to send integers (unit_16_t and etc)
>> How do I specify the data type and how do I assign the value.
>>
>> thanks
>>
>> Regards,
>>
>> Shamali
>>
>>
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Regards,
> Xiaozong Cui
>
>
>


-- 
Regards,
Xiaozong Cui
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to