It is possible to read the last reset reason with the following code, but it always returns RESET_REASON_UNKNOWN. Does Arduino Opta not support this function? How do I know if it is supported?
#include <drivers/ResetReason.h>
mbed::ResetReason::get();