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

Cellular.localIP() API #850

Merged
merged 4 commits into from Mar 17, 2016

Conversation

@technobly
Copy link
Member

commented Jan 29, 2016

Example Code

Serial.println("Get the local (private) IP address for the Electron");
Serial.println(Cellular.localIP());

@m-mcgowan m-mcgowan added this to the 0.4.10 milestone Feb 1, 2016

@m-mcgowan m-mcgowan force-pushed the feature/electron/localip branch from 1f5e67d to 0510a6a Mar 10, 2016

@m-mcgowan m-mcgowan referenced this pull request Mar 10, 2016
17 of 17 tasks complete
@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Mar 10, 2016

I reworked the WLanConfig so we have distinct config objects per network type. Untested - will test before merging.

@m-mcgowan m-mcgowan force-pushed the feature/electron/localip branch from 0510a6a to 828a365 Mar 14, 2016

@m-mcgowan m-mcgowan force-pushed the feature/electron/localip branch from 828a365 to 431538b Mar 17, 2016

@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Mar 17, 2016

The IP addresses I get from a few tries is 10.41.5.183 and 10.41.250.26 which seem correct. (I initially wondered if the 183 should have been the first octet, but with the 2nd address I see that we are in a private network 10.x.x.x.)

m-mcgowan added a commit that referenced this pull request Mar 17, 2016

@m-mcgowan m-mcgowan merged commit 7e89e50 into develop Mar 17, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@technobly technobly removed the in progress label Mar 25, 2016

@m-mcgowan m-mcgowan deleted the feature/electron/localip branch Sep 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.