Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote/local IP/Port functions to WiFiClient #3

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

esev
Copy link

@esev esev commented Dec 21, 2024

I'd like to have this available before reintroducing meshtastic/firmware#5636

Tested with

    WiFiClient client(0);
    assert(client.connect("192.168.1.1", 22));
    printf("remote: %08x:%d\n", (uint32_t)client.remoteIP(), client.remotePort());
    printf("local: %08x:%d\n", (uint32_t)client.localIP(), client.localPort());

Result (the byte swapped IPs are expected):

remote: 0101a8c0:22
local: 020012ac:40334

Needed for meshtastic/firmware#5647

@CLAassistant
Copy link

CLAassistant commented Dec 21, 2024

CLA assistant check
All committers have signed the CLA.

@thebentern thebentern merged commit fa7ed2a into meshtastic:master Dec 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants