Particle subscribe handler data length

hmm maybe don’t use String.

I found this OTA Updates Failing on Core
Why does the use of String cause heap exhaustion?

So should I be using std::string instead of String? What is the difference between the two?
Or should I be using char[] or char*?

The particle cloud functions seem to use a mixture of const char* and String.

What is the advantages and disadvantages of using the above?

1 Like