Search found 56 matches

by ESP-Marius
Thu Nov 26, 2020 8:17 am
Forum: General Discussion
Topic: The device can't connect to the mqtt server after the certificate has been changed on the server
Replies: 5
Views: 207

Re: The device can't connect to the mqtt server after the certificate has been changed on the server

Hi, On esp32 mbedtls is compiled without "time" support by default. This is controlled by MBEDTLS_HAVE_TIME_DATE in menuconfig. If this is set to "no" then you will still be able to connect even if the certificate is expired. One option is to put the root certificate (of the certificate used to sign...
by ESP-Marius
Tue Oct 27, 2020 1:34 am
Forum: ESP-IDF
Topic: Generate rsa 2048b pem ON the esp32?
Replies: 2
Views: 225

Re: Generate rsa 2048b pem ON the esp32?

MbedTLS should be able to do this for you, see:

Code: Select all

mbedtls_rsa_gen_key
by ESP-Marius
Mon Oct 26, 2020 1:51 am
Forum: ESP-IDF
Topic: esp_crc16_be not available in 4.0, what can I use instead?
Replies: 1
Views: 164

Re: esp_crc16_be not available in 4.0, what can I use instead?

esp_crc16_be is simply a wrapper function around the rom function crc16_be , so you can safely use this rom function directly. Which Blufi demo are you actually looking/hacking at? The blufi example in 4.0 has the correct crc function for that release: uint16_t blufi_crc_checksum(uint8_t iv8, uint8...
by ESP-Marius
Fri Oct 23, 2020 10:44 am
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2744

Re: ESP32 mqtt client ws_read() failure

@ESP-Marius Hi, My timeout logic is not perfect. I still get: TRANSPORT_WS: Error read data TRANSPORT_WS: Error reading payload data Would you please create your patch for my SHA 84b51781c80740fda92784dafcfc96c13b0d8b66 ? Hi, You can try the one I've attached now and see if that applies/helps.
by ESP-Marius
Sat Oct 10, 2020 8:52 am
Forum: General Discussion
Topic: Chrome browser refuses IDF Websocket upgrade response
Replies: 5
Views: 742

Re: Chrome browser refuses IDF Websocket upgrade response

I agree, this limits the usability of the websocket server a bit.

Have an in-progress MR for adding subprotocol as a config option for websocket URIs

You can try the attached diff if you are interested.
by ESP-Marius
Sat Oct 10, 2020 2:32 am
Forum: ESP-IDF
Topic: Do you need to unregister after esp_websocket_register_events() ?
Replies: 2
Views: 264

Re: Do you need to unregister after esp_websocket_register_events() ?

Depends on what you wanna do. If you simply want to connect to a different URI, but use the same event_handler and client you could do something like this: esp_websocket_client_close(client, portMAX_DELAY); esp_websocket_client_set_uri(client, "ws://192.168.0.1:8080"); esp_websocket_client_start(cli...
by ESP-Marius
Fri Oct 09, 2020 10:35 am
Forum: General Discussion
Topic: Chrome browser refuses IDF Websocket upgrade response
Replies: 5
Views: 742

Re: Chrome browser refuses IDF Websocket upgrade response

Seems like your websocket client requests the subprocotol mqttv3.1. However the esp32 websocket server doesn't support any subprotocols at the moment and doesn't include this field in the reply (which is a valid response as far as I can see from the RFC) So my guess would be that with Firefox the br...
by ESP-Marius
Fri Oct 09, 2020 10:13 am
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2744

Re: ESP32 mqtt client ws_read() failure

Mind testing if this works for you? (without any of your timeouts)

Attached a diff

Go to advanced search