Search found 13 matches

by DEsp3286
Mon May 10, 2021 6:14 pm
Forum: ESP-IDF
Topic: RMT xRingbufferReceive lock function ?
Replies: 2
Views: 3026

RMT xRingbufferReceive lock function ?

Hi all, I'm working with RMT, especially the receive function; I'm missing something.. :shock: once it enter in the part items = (rmt_item32_t *) xRingbufferReceive(rb, &length, portMAX_DELAY); in case of no items, the loop stucks until "portMAX_DELAY" unlock it. Is it possible to avoid this ? //......
by DEsp3286
Tue May 19, 2020 8:26 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

Thanks for help!
by DEsp3286
Mon May 18, 2020 9:19 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

I copied / paste only the certificate without renaming any item in the mqtt/ssl example and now I got the same error: verification info: ! The certificate is signed with an unacceptable key (eg bad curve, RSA too short). So probably I did something wrong before this. How did you fix this? Did you mo...
by DEsp3286
Fri May 15, 2020 11:47 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

What do you mean? Did you get the same error?

Code: Select all

failed to verify peer certificate
verification info: ! the certificate is not correctly signed by the trusted CA
by DEsp3286
Fri May 15, 2020 10:31 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

The error is the same I got from https://test.mosquitto.org/.

If you download the mosquitto.org.crt (PEM format), and try the mqtt/ssl example you should get the same error.

Could you try? Maybe there's something wrong in my config file.

Thanks
by DEsp3286
Fri May 15, 2020 10:12 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

Error is:

Code: Select all

failed to verify peer certificate
verification info: ! the certificate is not correctly signed by the trusted CA
How to fix this?
by DEsp3286
Fri May 15, 2020 8:46 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

Re: mqtt ssl example certificate error

Thanks for reply;

I'm trying with my own broker and certificate, but got the same error.

How can I "fix" the certificate in order to be trusted?
Or how can I "tell" to the esp to trust this certificate ?
by DEsp3286
Fri May 15, 2020 7:10 am
Forum: ESP-IDF
Topic: mqtt ssl example certificate error
Replies: 13
Views: 16247

mqtt ssl example certificate error

Hi, I'm having some trouble with mqtt ssl example. If I test it with the default broker "mqtts://mqtt.eclipse.org:8883" and default certificate "mqtt_eclipse_org.pem" It works correctly. If I change the broker with mqtts://test.mosquitto.org:8883 ( https://test.mosquitto.org/ ) and change the certif...
by DEsp3286
Tue Apr 14, 2020 6:46 am
Forum: ESP-IDF
Topic: Button counter with interrupt
Replies: 6
Views: 14861

Re: Button counter with interrupt

Sorry for that. I was wondering if this approach is correct. I want to know when a button is pressed ( i.e. for 3 seconds and when it's pressed for more than 10 ). I could poll every second and check for the status of the GPIO, or I could use interrupt. My question is: when the interrupt is triggere...
by DEsp3286
Fri Apr 10, 2020 6:16 am
Forum: ESP-IDF
Topic: Button counter with interrupt
Replies: 6
Views: 14861

Re: Button counter with interrupt

Any advice?
Thanks