FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [September 2012 Threads] xQueueSend appends CR LF?Posted by Duncan McNamara on September 28, 2012 All,
I have a web client that is requesting a file from a server and sending it to the stdout (UART) and plan for other destinations. For resource management, the buffer used for response has been 8 bytes. This works fine with a direct write to the UART (bad in RTOS) but the xQueueSend in the following case appends CR and or LF. This breaks up the single stream of HTML and is not desirable.
xUARTMessage.pcMessage = vBuffer; xQueueSend(xUARTQueue, &xUARTMessage, portMAX_DELAY );
vBuffer is NULL terminated. Could the termination be that cause? I can not find the reason in Queue.c
Regards, Duncan
RE: xQueueSend appends CR LF?Posted by Duncan McNamara on September 28, 2012 Dear all,
Please forgive me for this post. The handling of the strings was on my side from xQueueRecieve and how I handled the UART. Issue closed.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|