You can almost always work with char*
and never touch String
.
If you have a specific example, I may be able to show you how.
e.g.
// docs for Particle.function() state the callback needs to look like
int someFn(String args);
// but this works just the same
int someFn(const char* args);