Closed hsaturn closed 1 year ago
(copy of Bazmundi comment:)
I would LUV an example of how to set the client ID on the remote client.
On the remote client I am using:
const char* BROKER = "192.168.4.1"; const uint16_t BROKER_PORT = 1883; static MqttClient pump_client; ... pump_client.connect(BROKER, BROKER_PORT,60);
What's the trick please? The std::string & is driving me batty :bat:
std::string &
Ok, thanks for the report Bazmundi. The thing is that there is no constructor with an IP address. Nor with a name in order to precisely avoid this kind of confusion.
Use MqttClient::connect("...") instead.
I'm opening an issue about Bazmundi comment on https://github.com/hsaturn/TinyMqtt/issues/47 and will take care about this this evening.
(copy of Bazmundi comment:)
I would LUV an example of how to set the client ID on the remote client.
On the remote client I am using:
What's the trick please? The
std::string &
is driving me batty :bat: