VSCode include issue with Particle wb

Hello experts and friends,
I'm having trouble with the mqtt_tls library on the Boron. The node can't connect to the broker because it's failing to send cipher suite information. I confirmed the failure by investigating TCP-dump and enabling debug.

I found an error with "#include "MQTT-TLS.h"" giving an message "cannot open source file "<mbedtls_config.h>" (dependency of "MQTT-TLS.h")C/C++(1696)", but it compiles successfully.
However, as it fails to include the "mbedtls_config.h" hence fails to get the required configuration for the cipher suit.

I tried using the particle web-ide but it is taking forever to load the MQTT_TLS library.
I've reinstalled mingw/gcc, but still the same, probably due to particle-WB uses its own compiler.

I need help to solve this issue.

Thanks.

Hi,
I know you have been experiencing issues with Workbench, so I went ahead and created a project and published it here:

It compiles fine on my side, would you like to try it?

I used Boron and DeviceOS 6.1.0.

Note: please note that a permanent MQTT connection is not recommended on a cellular device since it can potentially consume lots of data.

Best of luck.

1 Like

Hi,

Thanks for the project. I had the same issue using the same setup (W11, VSCode), but it compiles fine. I also tried the Particle web IDE; I could add community libraries, but not the mqtt-tls library.
I will try using a different pc again.