Hello, thanks for your work.
I have two topics.
The ClientID ist generated allways as Random-Value. I need a fixed value and solved as follows:
In the Header-File:
ESPPubSubClientWrapper(uint8_t *ipaddr, const char * clientID, uint16_t port = 1883);
and in cpp:
ESPPubSubClientWrapper::ESPPubSubClientWrapper(uint8_t* ipaddr, const char * clientID, uint16_t port) :PubSubClient(ipaddr, port, _wiFiClient) { _clientID = (char *) clientID; };
This works in my case, I connect only without authentification.
Furthermore I found a method doSetConnect(). In this method there is used the member _connect_id. It seems to me, that this member is never used again.
Greetings
Karsten
Hello, thanks for your work.
I have two topics.
The ClientID ist generated allways as Random-Value. I need a fixed value and solved as follows:
In the Header-File:
ESPPubSubClientWrapper(uint8_t *ipaddr, const char * clientID, uint16_t port = 1883);and in cpp:
ESPPubSubClientWrapper::ESPPubSubClientWrapper(uint8_t* ipaddr, const char * clientID, uint16_t port) :PubSubClient(ipaddr, port, _wiFiClient) { _clientID = (char *) clientID; };This works in my case, I connect only without authentification.
Furthermore I found a method doSetConnect(). In this method there is used the member _connect_id. It seems to me, that this member is never used again.
Greetings
Karsten