Search found 69 matches

by ESP_cermak
Fri Nov 22, 2019 10:42 am
Forum: ESP-IDF
Topic: mbedTLS error with MQTT
Replies: 2
Views: 6513

Re: mbedTLS error with MQTT

Just a quick update on this old issue (might be useful for others with similar issues). Not sure what the root-cause was, but generally all these possible symptoms were solved: * thread safety * fragmenting out messages, receiving fragmented messages * fragmenting on TLS layer (solved recently in ht...
by ESP_cermak
Tue Nov 05, 2019 6:49 am
Forum: ESP-IDF
Topic: mqtt_client read error or end of stream (wrong topic len in TCP)
Replies: 2
Views: 4493

Re: mqtt_client read error or end of stream (wrong topic len in TCP)

Hi Leander,

which version of IDF and esp-mqtt are you using?
There were indeed some issues like malformed packets in some cases but with older version of the library. Simple check is to update mqtt submodule to the latest master and see if the issues still present.
by ESP_cermak
Wed Jul 24, 2019 11:22 am
Forum: ESP IoT Solution 中文讨论版
Topic: ESP SDK中是否支持mqtt broker功能
Replies: 1
Views: 10495

Re: ESP SDK中是否支持mqtt broker功能

Hi,

There's no official support for ESP32 MQTT Broker in IDF. You can probably find some implementations somewhere else, this is an example an ESP32 broker https://github.com/nopnop2002/esp-idf-mqtt-broker.
by ESP_cermak
Tue Jul 16, 2019 2:25 pm
Forum: ESP-IDF
Topic: How to use ESP-MQTT in a correct way (event loop)?
Replies: 7
Views: 15647

Re: How to use ESP-MQTT in a correct way (event loop)?

Hi,

No need to use event_loop to publish messages. You can just call mqtt-publish from a separate task every 10 s. I would also recommend event flags to be set on connection event and cleared on disconnect. Then you can simply run the needed API whenever you're connected.
by ESP_cermak
Tue Jul 02, 2019 7:10 am
Forum: ESP-IDF
Topic: Help using CLion + CMake + ESP-IDF v3.2.2
Replies: 12
Views: 20171

Re: Help using CLion + CMake + ESP-IDF v3.2.2

CLion works flawlessly for me with ESP-IDF projects. I'm on macOS, but also tried windows and linux in the past and saw no issues. The only configuration needed was to setup IDF_PATH under Toolchain->CMake->Environment. Other configuration was to set the build directory to be in line with idf.py, bu...
by ESP_cermak
Thu May 23, 2019 9:13 am
Forum: ESP-WHO
Topic: Can I link esp-eye to my home WiFi
Replies: 2
Views: 11113

Re: Can I link esp-eye to my home WiFi

Hi smbunn, you can connect to your WiFi just disabling [EXAMPLE_ESP_WIFI_MODE_AP](https://github.com/espressif/esp-who/blob/master/examples/single_chip/recognition_solution/main/app_wifi.c#L39) in app_wifi.c, which enables station mode. ESP-WHO references IDF 3.2, where esp-mqtt is already integrate...
by ESP_cermak
Mon Apr 08, 2019 12:39 pm
Forum: General Discussion
Topic: mbedtls_ssl_setup returned -0x7f00
Replies: 4
Views: 11538

Re: mbedtls_ssl_setup returned -0x7f00

Hi,

This return code means `MBEDTLS_ERR_SSL_ALLOC_FAILED`, so mbedtls failed to malloc some data.
You may want to printf available heap size with `esp_get_free_heap_size()`.
by ESP_cermak
Wed Apr 03, 2019 6:40 am
Forum: General Discussion
Topic: CMake / CLion
Replies: 11
Views: 20383

Re: CMake / CLion

Hi, Configuring CLion with CMake IDF build system is very simple, that is: no configuration needed ;) Just open an existing project, where your project CMakeLists.txt resides, possibly set your IDF_PATH and a generation path (to be in line with `idf.py` so you can conveniently run flash/monitor from...
by ESP_cermak
Tue Apr 02, 2019 7:07 am
Forum: General Discussion
Topic: ESP-MQTT
Replies: 2
Views: 3897

Re: ESP-MQTT

Hi, The best starting point would be idf 3.2, where esp-mqtt is integrated as component. If you have to stick with 3.1, then you can easily * checkout 3.2 separately and copy folders `example/protocols/mqtt/tcp` and `components/mqtt` to your idf 3.1.3 tree * go to `components/mqtt/esp-mqtt` and chec...
by ESP_cermak
Mon Apr 01, 2019 8:02 pm
Forum: ESP-IDF
Topic: Socket - TCP Server 500ms read time out
Replies: 8
Views: 11427

Re: Socket - TCP Server 500ms read time out

Hi belph86, the idf tcp_server example receives a message from a blocking socket and echos it back. if you're talking about the delay between esp32 sending the message and its reception in python, then indeed this could be Nagles algorithm. You can set the socket to nodelay mode with: int nodelay = ...