-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
showng header file error like no such dictionary #382
Comments
@lealem47 can you review this? Seems like they need the include path for |
Hi @Vishal-Birajdar, More docs: https://github.com/wolfSSL/wolfMQTT/blob/master/IDE/STM32CUBE/README.md Thanks, |
Note: Duplicate of ZD#17181 |
I am giving direct folder path in library path option in stm32cube ide. this is not path issue, actually " wolfmqtt/mqtt_client.h , |
I install pack in stm32cube ide as per document but in software pack then select component there is only wolfSSl otion available not a wolf mqtt |
Looks like you only have the wolfSSL software pack installed. You can install the wolfMQTT pack following the instructions here https://github.com/wolfSSL/wolfMQTT/blob/master/IDE/STM32CUBE/README.md |
Vishal, I understand that it is not listed in your locally available pack list. In order to get it installed and onto that list, follow the documentation at the link I provided. https://github.com/wolfSSL/wolfMQTT/blob/master/IDE/STM32CUBE/README.md The first few steps are:
|
Ok.
I added pack now . I will check it tomorrow because of here is mid night
now.
Thank you for support
Vishal
…On Wed, 13 Dec, 2023, 11:42 pm lealem47, ***@***.***> wrote:
Vishal,
I understand that it is not listed in your locally available pack list. In
order to get it installed and onto that list, follow the documentation at
the link I provided.
https://github.com/wolfSSL/wolfMQTT/blob/master/IDE/STM32CUBE/README.md
The first few steps are:
- Download the pack
<https://www.wolfssl.com/files/ide/I-CUBE-wolfMQTT.pack>.
- Run the “STM32CubeMX” tool.
- Under “Manage software installations” pane on the right, click
“INSTALL/REMOVE” button.
- Select From Local and choose the downloaded pack
“I-CUBE-wolfMQTT.pack”.
- Accept the GPLv2 license. Contact wolfSSL at ***@***.*** for a
commercial license and support/maintenance.
—
Reply to this email directly, view it on GitHub
<#382 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEC7WDFOCHLDOA3YQYY7FGTYJHVW7AVCNFSM6AAAAABASQ7MXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJUGQ3TINZWGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hii, |
Hi @Vishal-Birajdar,
I'm not sure what that means. Can me you tell about your setup? Is the broker expecting TLS? When you say it can't connect, is there an error code that you are seeing? Can you confirm that you are calling the Thanks, |
problem solved now . |
how can i use 'mqttclient_publish ,netconnect function in my main.c file.(showing error) |
I'm glad you solved the initial problem. What are the new errors that you are seeing? To call
Attach any relevant logs/errors if the build still fails. |
main.txt |
It looks like you missed copying some of the includes from mqttsimple.c to main.c. Mainly these ones:
Also, in main.c you do not have to include |
I add this library and call mqttsimple_test() function in main.c . /opt/st/stm32cubeide_1.12.1/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.linux64_1.0.200.202301161003/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ./Core/Src/main.o: in function 13:24:08 Build Failed. 3 errors, 1 warnings. (took 11s.713ms) |
It looks like that the mqttsimple example is guarded by the |
after adding #define HAVE_SOCKET showing error in mqttsimple.c -> #include <netinet/in.h> no such file error 23:42:11 Build Failed. 5 errors, 0 warnings. (took 1s.693ms) |
That header should not be included if using lwip (The desired functionality is already provided in |
I'm able to successfully able to compile your exact scenario after commenting out that header. Can you share your generated |
/home/pvipl/STM32CubeIDE/MQTT_E/wolfMQTT/wolfSSL.I-CUBE-wolfMQTT_conf.h |
Could you try adding |
Could you also try manually adding |
showing error . |
We are not making progress this way. I see that you have opened a support ticket regarding this issue. I will reach out to you there and we can schedule a call to debug and get this working for you. |
Resolved offline. The issue was fixed by enabling |
The text was updated successfully, but these errors were encountered: