|
From: | Mark Lakata |
Subject: | Re: [lwip-users] Sending out TCP-Data as integer type |
Date: | Wed, 05 Dec 2012 13:37:49 -0800 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 |
Read up on integers and how they are
stored in memory http://en.wikipedia.org/wiki/Endianness Try this int data = ""> tcp_write(pcb,
data, 4, 1); // I changed the 1 to a 4 tcp_output(pcb);
or 00 00 00 FF (since
you have a 32 bit bit endian architecture) -Mark
On 12/5/2012 6:38 AM, Firedog I. wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |