-
Notifications
You must be signed in to change notification settings - Fork 3k
ESP8266: static address configuration and dhcp enable/disable added #12721
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
ESP8266: static address configuration and dhcp enable/disable added #12721
Conversation
@michalpasztamobica, thank you for your changes. |
7e91ca5
to
9f347c5
Compare
I force-pushed astyle fixes. |
@michalpasztamobica
Perhaps that OS version is a bit old?
|
@star297 , can you try enabling the logs in mbed_app.json:
With this you should see what's going on over AT commands and you will se if there are any errors. |
Okay, it does actually work by running 'set_network' resetting IP AFTER connection, so your start up order is wrong
Has be to be set first before setting IP. |
CI started |
@0xc0170 , please withhold the merge, I need to comprehend Paul's remark and perhaps adjust the code. I will get down to this as soon as I have a free moment. |
Pull request has been modified.
@star297 , thanks a lot for your remark, I just pushed a fix, which hopefully fixes the problem. It calls |
That should fix it, can I import that to Studio from here?, then I can check. https://github.com/michalpasztamobica/mbed-os/tree/esp8266_set_network |
Yes, you should be able to import this, just like any other git branch. It sure has the most recent changes. |
Sorry Michal that latest import is not working.
This is with the command sent AFTER connecting, no timeouts and the AT+CIPSTA_CUR command changes the IP to 192.168.1.180.
|
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
@michalpasztamobica will wait for confirmation |
@star297 , not sure what code produced that first log you pasted, but what I am seeing is that you somehow sent AT commands before
as this is echo_off() function and there's just one place this can possibly come from. So I wonder how come the |
Sounds like its working for you so no worries. |
I got a confirmation from @mtomczykmobica that the behavior is not exactly as I expected. I think this needs more debugging from my side. I will try to use RAAS, or test on my desk as soon as I have access to K64F+ESP8266 setup. |
Test run: FAILEDSummary: 3 of 3 test jobs failed Failed test jobs:
|
CI lts not related to this PR, will be cleared and proper CI restarted after 5.15 PRs are all integrated |
CI restarted |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Summary of changes
Fixes #12552
I implemented the
set_network
function, which configures static network address andset_dhcp
function.This function is optional, so no greentea tests are available. I only tested on RAAS, but had no way of really allowing static IP address setting. @star297 , would you please check if this PR works for you?
Impact of changes
New functionalities of ESP8266 are now available.
Migration actions required
None.
Documentation
Doxygen copied from
NetworkInterface
.Pull request type
Test results
Reviewers
@SeppoTakalo
@AnttiKauppila
@VeijoPesonen
@star297