Closed jnthas closed 1 year ago
These are more questions for @jesserockz as he wrote the SDK and implementation for ESPHome.
String
is defined by Arduino and using it forces a library to be Arduino only. It's there in the improv sdk but preprocessed out when not using Arduino so the sdk would be compatible with other frameworks, eg esp-idf
where std::string
can be used.
Right. I saw the preprocessor but in this library I will have to use this practice a lot, it can get confusing. I think I can prioritize char*
for public methods and use std::string
internally.
@jesserockz if you have any other consideration please let me know!
@balloob I'm working in a Arduino library for Improv WiFi. I would like to hear your opinion, please. Some points I'm considering:
std::string
orString
improv.cpp
class as I'm passing the SDK to the ImprovWiFi class.