Skip to content

C++ "Hello World" Project #6

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

Closed
GarageGadget opened this issue Mar 14, 2017 · 14 comments
Closed

C++ "Hello World" Project #6

GarageGadget opened this issue Mar 14, 2017 · 14 comments

Comments

@GarageGadget
Copy link

Hi,

I would appreciate it if you can provide the C++ configuration details e.g example "Hello World" project for C++.

This would help fast track myself and others with C++ development on the ESP32.

Keep up the good work.

BR,
Brent

@nkolban
Copy link
Owner

nkolban commented Mar 14, 2017

@GarageGadget

Great idea ... thank you for that sir. Here is a first pass ... have a go and lets see if this meets the need. Please post back with comments/results.

https://github.com/nkolban/esp32-snippets/blob/master/skeletons/cpp/main_helloworld.cpp

@GarageGadget
Copy link
Author

GarageGadget commented Mar 14, 2017

Thank you for the example

I replaced the main.c with main_helloworld.cpp file a project based on esp-idf-template project.

I had to add the include directory to the include path to resolve ESP_LOGD declarations.
The code compiled and flashed without issue but unfortunately none of the application messages were sent to the uart.

I had to adjust the log level to get the messages to output to the uart.

@nkolban
Copy link
Owner

nkolban commented Mar 14, 2017

Ahhh ... yes ... sorry ... by using ESP_LOGD() that logs at the debug level which is a lower level logging than default. But it sounds like you got it figured.

Close this issue when you are happy.

@mumairanwar92
Copy link

@GarageGadget I'm having the same issue, will you guide me how did you adjust the log level to get the output ? Thanks in advance.
and @nkolban , Great tutorial and awesome effort writing the book about esp32. Really appreciated.

@nkolban
Copy link
Owner

nkolban commented Jul 7, 2017

@mumairanwar92 The logging is documented here ...

http://esp-idf.readthedocs.io/en/latest/api-reference/system/log.html

At a high level, and assuming your are using ESP-IDF, run "make menuconfig" and navigate through the menus to the log settings. Set the default log output level to debug or lower. If you need further assistance, don't hesitate to post back.

@mumairanwar92
Copy link

@nkolban thanks for the comment. It has been resolved. you and your tutorials have been a great help throughout.

@arunbm123
Copy link

hi
I am unable to import includes file c_includes.xml.
after giving path. and finish nothing happens

@wdouglas1999
Copy link

Hi all,
I am too unable to import includes from the c_includes.xml. Exactly the same situation as arunbm123.
Has any solution been found?
Thank you.

@chegewara
Copy link
Collaborator

@burkulesomesh43
Copy link

@nkolban
I ma using using esp idf environment on esp32 board. I want to decode url.
URL>>file:///F:/s?ssid=cabin+336&Passkey=Cabin336%40efc

In above url, 'Cabin336%40efc' includes '%40' which has its decoded value '@'
so how to decode this?
I tried to use base64.h library file from esp idf but gives an error..
fatal error: base64.h: No such file or directory

@chegewara
Copy link
Collaborator

@burkulesomesh43
Copy link

burkulesomesh43 commented Aug 10, 2018

@chegewara
yes, this file is on this location but when i used #include "base64.h" it gives error..

@chegewara
Copy link
Collaborator

@burkulesomesh43
Copy link

@chegewara
hey Its working.
thank you so much for help and quick response..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants