I\'m lead to believe that write()
can only send data buffers of byte (i.e. signed char), so how do I send an array of long integers using the C write()
Write can do what you want it to, but there's some things to be aware of:
1: You may get a partial write that's not on an int boundary, so you have to be prepared to handle that situation
2: If the code needs to be portable, you should convert your array to a specific endianess, or encode the endianess in the message.