Skip to content

ClientID #3

@Roemke

Description

@Roemke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions