node.bootreason missing in build for esp32
Posted: Wed Dec 30, 2020 7:43 am
When doing a firmware build for esp32 the image does not contain an entry for bootreason() in the "node" table
This seems to be inline with the github repo of the firmware; file components/modules/node.c does not contain an LROT_FUNCENTRY for this function.
Yet, the docs do mention this functionality (docs/modules/node.md)
Functionality is basically there in sdk/esp32-esp-idf/components/esp32/reset_reason.c as esp_reset_reason().
Are there any hints or patches to get this working?
Code: Select all
> print(node.bootreason())
stdin:1: attempt to call field 'bootreason' (a nil value)
stack traceback:
stdin:1: in main chunk
This seems to be inline with the github repo of the firmware; file components/modules/node.c does not contain an LROT_FUNCENTRY for this function.
Yet, the docs do mention this functionality (docs/modules/node.md)
Functionality is basically there in sdk/esp32-esp-idf/components/esp32/reset_reason.c as esp_reset_reason().
Are there any hints or patches to get this working?