Open dannybackx opened 5 months ago
I think most of our examples use the esp_modem
's C++ API. They still use the plain C API of other components (esp_event
, mqtt
, esp_netif
, ota
and others) in order to simplify things and demonstrate mainly the modem library.
What exactly do you mean by the small full C++ sample
? using C++ wrapper around general IDF components? Using Espressif C++ component from https://github.com/espressif/esp-idf-cxx? Using exceptions for error handling?
You can also check some of our test apps, which use RAII wrappers around events, mqtt and OTA: https://github.com/espressif/esp-protocols/tree/master/components/esp_modem/test/target_ota
Yeah, you're right, I think I messed up with my question. I must have looked in all the wrong places for a while and probably copied both from C++ and C examples into my own source.
The ppp_connect_esp_modem.c was probably one of the culprits (in esp-protocols/examples/esp_netif/multiple_netifs) .
Answers checklist.
General issue report
The docs speak about C++ but there isn't a single C++ example. Yes I also looked at IDFGH-8031, this is also a mixture between C and C++.
Could someone post a small full C++ sample please ?