Search found 39 matches

by sukeshak
Thu Sep 21, 2017 10:35 pm
Forum: Sample Code
Topic: spi driver for lcd interfacing
Replies: 18
Views: 14606

Re: spi driver for lcd interfacing

Or more importantly, how do you write a PutPixel function?
by sukeshak
Thu Sep 21, 2017 9:51 pm
Forum: Sample Code
Topic: spi driver for lcd interfacing
Replies: 18
Views: 14606

Re: spi driver for lcd interfacing

hi guys note, SPI Master driver with example since few days now in the ESP-IDF displays some fancy graphics on the ILI9341-based 320x240 LCD on an ESP-WROVER_KIT board best wishes rudi ;-) Hi Rudi, Is there a full library version of this using the ESP-IDF (latest SPI) for ILI9341-based 320x240 LCD ...
by sukeshak
Thu Sep 21, 2017 9:11 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 6020

Re: Example of using Queue to pass strings between tasks

Thank you so much Neil. Will try it out and come back :)
by sukeshak
Thu Sep 21, 2017 5:14 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 6020

Re: Example of using Queue to pass strings between tasks

So what I am trying to do is TCP Socket server on a device (ESP32) emitting string data (not json now but maybe later) coming from different peripherals (3 for now). Client is more like a wireless display in this scenario: 1. TCP Socket client on another ESP32 device 2. String of information comes t...
by sukeshak
Thu Sep 21, 2017 4:03 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 6020

Re: Example of using Queue to pass strings between tasks

I have used queues to pass strings around in some of my projects. What I do is allocate storage for the string (so that it is not on stack) and then add a pointer to the string into the queue. The reader of the queue then sees a new entry which is a pointer to the string, works with the string and ...
by sukeshak
Thu Sep 21, 2017 9:31 am
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 6020

Re: Example of using Queue to pass strings between tasks

A queue actually is made for items with a defined length; if you throw in strings it'll waste a bunch of memory. Maybe you want to look at the ringbuffer implementation (in components/freertos/ringbuf.c and components/freertos/include/freertos/ringbuf.h) instead? Unfortunately, I also do not have a...
by sukeshak
Wed Sep 20, 2017 11:09 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 6020

Example of using Queue to pass strings between tasks

I am looking for an example where a char string is passed between tasks (producer/consumer).
Most of the examples I have seen are using numbers like int.

Thanks in advance :)
by sukeshak
Wed Sep 20, 2017 11:03 pm
Forum: ESP32 IDF
Topic: LWIP- mulitple client example
Replies: 12
Views: 8132

Re: LWIP- mulitple client example

Thank you for the response. Will run through some tutorials soon.

I changed the loop as well... since it makes better sense :)
by sukeshak
Wed Sep 20, 2017 7:45 pm
Forum: ESP32 IDF
Topic: LWIP- mulitple client example
Replies: 12
Views: 8132

Re: LWIP- mulitple client example

I just changed it to this using bytesSent and seems to be working... does it look right? I am new to socket programming :) static void sendData(int sock) { int bytesSent=0;    while(1)    {       if (bytesSent < 0) // check disconnect       {          // client disconnected???          ESP_LOGI(TAG,...
by sukeshak
Wed Sep 20, 2017 7:27 pm
Forum: ESP32 IDF
Topic: LWIP- mulitple client example
Replies: 12
Views: 8132

Re: LWIP- mulitple client example

Thank you for the response. My sendData function is like this. What do you suggest to check the socket disconnect? static void sendData(int sock) { while(1) { if (sock < 0) // how to check disconnect??? { // client disconnected??? ESP_LOGI(TAG, "[%d]",(int)sock); break; } char *line = readLine(MY_UA...