EspMQTTClient icon indicating copy to clipboard operation
EspMQTTClient copied to clipboard

add options to use char* in arguments

Open angrest opened this issue 2 years ago • 0 comments

The functions publish, subscribe and unsubscribe take String& as arguments, the implementation then passes those as char* (via c_str()) onwards. In my sketch, I've removed all String instances and only use char*. Thus it would be very helpful (and straightforward to be implemented) if those three functions would be changed to use char* as arguments. To maintain compatibility, the String-versions could call the char* implementations via the same c_str() transformation.

angrest avatar Sep 01 '22 09:09 angrest