-
Notifications
You must be signed in to change notification settings - Fork 3k
ESP8266: Support power pin in custom wiring #11343
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
Conversation
@ccli8, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much more like it. I'd just clarify the help text a bit.
@@ -78,7 +78,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface { | |||
* @param rx RX pin | |||
* @param debug Enable debugging | |||
*/ | |||
ESP8266Interface(PinName tx, PinName rx, bool debug = false, PinName rts = NC, PinName cts = NC, PinName rst = NC); | |||
ESP8266Interface(PinName tx, PinName rx, bool debug = false, PinName rts = NC, PinName cts = NC, PinName rst = NC, PinName pwr = NC); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a binary compatibility break, but I guess this isn't a core enough component for that to be an issue.
"value": 0 | ||
}, | ||
"power-on-time-ms": { | ||
"help": "Power-on time in ms for the modem", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify this to delay after powering on modem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified
In custom wiring, there can be a power pin to power on/off the modem. This commit supports it and allows for the following configurations: - power pin name - power pin polarity - power on/off delay time
c3bec41
to
650e2e5
Compare
CI started |
Test run: FAILEDSummary: 2 of 4 test jobs failed Failed test jobs:
|
CI restarted (internal timeout fault) |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
This PR tries to support power pin in custom wiring for the ESP8266 module. It allows for the following configurations:
Related PR
Replacement for #11299 and #11331
Pull request type
Reviewers
@michalpasztamobica @kjbracey-arm
Release Notes