Search found 3 matches
- Mon Oct 15, 2018 7:33 am
- Forum: ESP-IDF
- Topic: strings in queue
- Replies: 9
- Views: 12632
Re: strings in queue
XQueueReceive You also have to free the allocated string its working now. thank you for your quick response. I have one question now. I am using queue length of 100 now as shown in below.. uint8_t* dataSerial = (uint8_t*) malloc(BUF); xQueue = xQueueCreate( 100, sizeof(dataSerial)); so queue has to...
- Mon Oct 15, 2018 6:37 am
- Forum: Sample Code
- Topic: Example of using Queue to pass strings between tasks
- Replies: 19
- Views: 36918
Re: Example of using Queue to pass strings between tasks
To create a queue, you would use xQueueCreate ... see http://www.freertos.org/a00116.html The size parameter would be large enough to hold a pointer to a character string ... for example: sizeof(char *) When you have a string to place on the queue: char *myData = "helloWorld"; you could then alloca...
Webserver
Hi, I have used webserver example. https://github.com/cmmakerclub/esp32-webserver/blob/master/main/main.c In this example I replaced the string(html code in string format) with my string stored in http_index_hml array. but my webpage is taking to much time to open in brower. What will be the reason ...