Search found 49 matches

by PaulVdBergh
Mon Apr 01, 2019 1:55 pm
Forum: General Discussion
Topic: Meaning of esp_mqtt_client_config_t.refrech_connection_after_ms
Replies: 1
Views: 228

Meaning of esp_mqtt_client_config_t.refrech_connection_after_ms

Hi All, I'm working on a mqtt project where I need to know if the client connection to the broker is still active. If the connection is disconnected, the system must asap come to halt. The first idea was to set a relative low keepalive value and let the client send periodically some dummy publishing...
by PaulVdBergh
Thu Feb 14, 2019 11:59 am
Forum: General Discussion
Topic: Components outside a project
Replies: 2
Views: 402

Re: Components outside a project

Sadly I'll never know what was wrong... This morning I deleted the ESP32 Project and started all over. I added one line to the default Makefile (in the root of the project): # # This is a project Makefile. It is assumed the directory this Makefile resides in is a # project subdirectory. # PROJECT_NA...
by PaulVdBergh
Wed Feb 13, 2019 7:36 pm
Forum: General Discussion
Topic: Components outside a project
Replies: 2
Views: 402

Components outside a project

Hi All, I'm working on a project involving different ESP32 and Linux applications. I'm using Eclipse under Debian9 in a VirtualBox running under Win10 and use the latest ESP-IDF version and toolchain. In the Linux project I can import the common files with a link: paulvdbergh@debian9:~/IoTT-workspac...
by PaulVdBergh
Thu Dec 06, 2018 3:05 pm
Forum: General Discussion
Topic: How to obtain documented assembly listing ?
Replies: 4
Views: 821

Re: How to obtain documented assembly listing ?

Hi krzychb, That is one option... But my experience with JTAG debugging on ESP32 devices is disappointing... When more threads are running in the debugger things get very obfuscated.. I rather would like to have listings of the generated assembly to compare the different compilations. However, thank...
by PaulVdBergh
Thu Dec 06, 2018 12:24 pm
Forum: General Discussion
Topic: How to obtain documented assembly listing ?
Replies: 4
Views: 821

How to obtain documented assembly listing ?

Hi, I wrote a lot of C++ classes using traditional C++. Now I'm studyng C++11, C++14 and so on. I would like to see if my efforts results in better machine code. In AVR GCC one could generate an .lls file, a conbination of C++ statements with the corresponding assembler instructions. Is this also po...
by PaulVdBergh
Sat Nov 03, 2018 2:43 pm
Forum: ESP32 IDF
Topic: Disable optimization (optimize for JTAG debugging)
Replies: 5
Views: 1291

Re: Disable optimization (optimize for JTAG debugging)

Hi Kostas,

If it's only to observe the value of some variables, why not use any kind of the printf or LOGx() functions? It's only for debugging, isn't it? Keep in mind that making a varaible global or static whitin a function makes the function non-reenrtant.

Paul
by PaulVdBergh
Fri Nov 02, 2018 10:54 am
Forum: ESP32 IDF
Topic: Disable optimization (optimize for JTAG debugging)
Replies: 5
Views: 1291

Re: Disable optimization (optimize for JTAG debugging)

My guess is the compiler put these variables in registers, so they are optimized away. Try to make them volatile ?

Paul.
by PaulVdBergh
Wed Aug 29, 2018 12:18 pm
Forum: General Discussion
Topic: Eclipse, ESP-IDF and linked source directory (Linux)
Replies: 0
Views: 331

Eclipse, ESP-IDF and linked source directory (Linux)

Hi All, I have an Eclipse Workspace setup with multiple projects. Most of these projects are based on common functionalities. These functionalities are implemented in a set of C/C++ files in a common sourcepool. Each project has a (linux) link to the sourcepool directory/ies. This setup works fine f...
by PaulVdBergh
Sat Aug 25, 2018 9:36 pm
Forum: ESP IoT Solution
Topic: esp-mqtt subscribe and retained messages
Replies: 2
Views: 1811

Re: esp-mqtt subscribe and retained messages

What worries me is the log I (4672) MQTT_CLIENT: deliver_publish, message_length_read=145, message_length=52 This makes me think that all the retained messages are effective delivered to the ESP (message_length_read=145), but only the first message message_length=52) is processed and dispatched in t...
by PaulVdBergh
Sat Aug 25, 2018 8:18 pm
Forum: ESP IoT Solution
Topic: esp-mqtt subscribe and retained messages
Replies: 2
Views: 1811

esp-mqtt subscribe and retained messages

Hi All, I'm having problems with receiving retained messages using the esp-mqtt component. My setup: Developing on Debian 9.5.0 running in a Win10 VirtualBox (5.2.18) using Eclipse Photon (4.8.0) and ESP-IDF (v3.2-dev-596-g7abed5fc-dirty). Mosquitto MQTT broker running on RPi 3B+ My Code: /* * main....

Go to advanced search