1.11.5
📈 Added
-
Zephyr:
-
Add the following built-in WiFi metrics for Zephyr devices, enabled by
default on systems with WiFi:wifi_connected_time_ms
: time in milliseconds the device has been
connected to a WiFi networkwifi_disconnect_count
: number of times the device has disconnected from
a WiFi networkwifi_ap_oui
: the OUI of the WiFi AP the device is connected to
The metrics can be disabled by setting
CONFIG_MEMFAULT_METRICS_WIFI=n
. -
The Memfault Zephyr fault handler now labels faults as Stack Overflow, Bus
Fault, MemManage Fault, and Usage Fault, among others, in addition to the
existing Hard Fault label. Note that this does not change the types of
faults collected (all these faults are already supported), but it does
correct the label presented in the Memfault UI. -
Add a new test command,
mflt test stack_overflow
, that will trigger a
stack overflow fault whenCONFIG_STACK_SENTINEL
or
CONFIG_MPU_STACK_GUARD
is enabled. -
The
cpu_temp
metric has been renamed tothermal_cpu_c
to better reflect
the metric's purpose. The metric is still collected by default on platforms
with an enableddie-temp0
sensor, and can be disabled by setting
CONFIG_MEMFAULT_METRICS_CPU_TEMP=n
. -
Add a new metric,
memory_pct_max
, which captures the max percentage of the
heap used. It is enabled by default. This metric and the existing
Heap_BytesFree
metric are controlled with
CONFIG_MEMFAULT_METRICS_MEMORY_USAGE
.
-
-
ESP-IDF:
-
Add an option to upload logs by default when using
MEMFAULT_HTTP_PERIODIC_UPLOAD
, controlled with the Kconfig symbol
MEMFAULT_HTTP_PERIODIC_UPLOAD_LOGS
. This can also be controlled at runtime
with the included API
memfault_esp_port_http_periodic_upload_logs(bool enable)
-
Add a new metric,
memory_pct_max
, which captures the max percentage of the
heap used. It is enabled by default. This metric and the existingheap_*
metrics are now controlled withCONFIG_MEMFAULT_METRICS_MEMORY_USAGE
. -
Print the Memfault OTA URL from
memfault_esp_port_ota_update()
when a new
update is available, for example:esp32> memfault_ota_check I (98125) mflt: Checking for OTA Update Download URL: https://ota-cdn.memfault.com/2950/9757/19036619757?token=0123456789abcdef&expires=1726192800&v=2 I (98775) mflt: Update available! esp32> memfault_ota_perform I (15515) mflt: Checking for OTA Update Download URL: https://ota-cdn.memfault.com/2950/9757/19036619757?token=0123456789abcdef&expires=1726192800&v=2 I (16205) mflt: Starting OTA download ...
-
🛠️ Changed
-
Zephyr:
- The
cpu_temp
metric has been renamed tothermal_cpu_c
to better reflect
the metric's purpose. The metric is still collected by default on platforms
with an enableddie-temp0
sensor, and can be disabled by setting
CONFIG_MEMFAULT_METRICS_CPU_TEMP=n
.
- The
-
ESP-IDF:
-
The
cpu_temp
metric has been renamed tothermal_cpu_c
to better reflect
the metric's purpose. The metric is still collected by default on ESP32
variants that support it (all but ESP32), and can be disabled by setting
CONFIG_MEMFAULT_METRICS_CPU_TEMP=n
. -
The Kconfig
CONFIG_MEMFAULT_ESP_HEAP_METRICS
has been replaced with
CONFIG_MEMFAULT_METRICS_MEMORY_USAGE
.
-