Library Problem

PabloG
Posts: 7
Joined: Thu May 13, 2021 10:14 am
Location: Argentina
Contact:

Library Problem

Postby PabloG » Fri Sep 20, 2024 9:43 pm

Hi,
I'm trying to mix the "BLE Provisioning" code and the MQTT code.
When I configure the MQTT example and subscribe to the mqttx.app page, with a CA certificate that I found on GitHub, it works perfectly, publishing the 3 AD values ​​without problems.
When I want to add this code along with the "Provisioning" the problems start, using the same certificate and codes, I start to have tls verification errors on one hand and on the other, it doesn't let me use the protocol_examples_common.h library, it gives the error that it can't find it. I've been around everywhere and I can't figure it out.
I've been programming 8 and 16 bit microcontrollers in C for many years, but this whole VCs and IDF environment is new to me.
I would appreciate some help with this.

username
Posts: 530
Joined: Thu May 03, 2018 1:18 pm

Re: Library Problem

Postby username » Sat Sep 21, 2024 4:47 pm

try
#include "../../examples/common_components/protocol_examples_common/include/protocol_examples_common.h"

PabloG
Posts: 7
Joined: Thu May 13, 2021 10:14 am
Location: Argentina
Contact:

Re: Library Problem

Postby PabloG » Mon Sep 23, 2024 12:55 pm

Thank you. This worked but i want to understand why, this VCs is like a nightmare.
Now I can go ahead with the next step.

username
Posts: 530
Joined: Thu May 03, 2018 1:18 pm

Re: Library Problem

Postby username » Mon Sep 23, 2024 9:37 pm

There is a more proper way to include it, I just didn't have time to go through those steps.
Basically you create a components folder copy those files in there and in your CMakeLists.txt file.
Personally I love VS, can't live without it.
But if it's not of your taste, you could try the Eclipse install.

Who is online

Users browsing this forum: Google [Bot] and 265 guests