Request: Update EspClass with Reset, Restart, getChipId #83
EricLauber
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Please send me a PR. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The esp8266/Arduino project includes implementations for several functions in
Esp.handEsp.cppsuch as:-reset
-restart
-getChipId
Code calling these functions will fail to build with EpoxyDuino with the message:
The same functions build fine and work as intended within the Arduino IDE. Reset and Restart are similar, although Reset may not properly clear out registers. getChipId returns a
uint32_tthat includes the latter half of the ESP MAC address in decimal (such asESP5435756).My request is to add functions with these names to EpoxyDuino to support building source that calls them. I think it would initially be acceptable to have calls to Reset and Restart basically do nothing - that would still allow projects that use them to build properly. Maybe a step further would be to print to the console that a restart was happening and to end the program/sketch. For getChipId this could return a default value or number like
ESP0000000in all cases.Beta Was this translation helpful? Give feedback.
All reactions