Right now, my code is limited to send text data only due to my sendMessage() . Third argument is string type. So I need to rework to transfer buffer instread of string.
>>Couldn't this sendMessage() call another function which is char * oriented? And when you actually have char * as in Message 3, then just use the lower level fuction.
Before sendMessage() can call another function, we already pass string to sendMessage() !!! Or should i change the third argument to char * ? so handle message1, message2 need to change, but message3 is ok to send.
>> If the String uses the Z-terminator common to C, you'll have lost the length before you get to a character based object.
Can u elaborate more? tks.