ESP32MQTTClient
ESP32MQTTClient copied to clipboard
initialize lastwill strings to nullptr
without initializing these, we assign garbage to the internal mqtt_client
struct's lastwill
struct unless EnableLastWillMessage()
is called. this usually manifests as an IllegalInstruction or ProhibitedLoad exception.
probably we ought be initializing more than just this, but this is absolutely necessary.