jnthas / Improv-WiFi-Library

Improv WiFi library
MIT License
11 stars 5 forks source link

Asking for opinion #1

Closed jnthas closed 1 year ago

jnthas commented 1 year ago

@balloob I'm working in a Arduino library for Improv WiFi. I would like to hear your opinion, please. Some points I'm considering:

balloob commented 1 year ago

These are more questions for @jesserockz as he wrote the SDK and implementation for ESPHome.

jesserockz commented 1 year ago

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.

jnthas commented 1 year ago

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.

jnthas commented 1 year ago

@jesserockz if you have any other consideration please let me know!