Skip to content

Commit 2808ab2

Browse files
author
Memfault Inc
committed
Memfault Firmware SDK 1.2.4 (Build 3479)
1 parent aca17f2 commit 2808ab2

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
# Memfault Firmware SDK Changelog
22

3+
## 1.2.4 - Sept 12, 2023
4+
5+
### :chart_with_upwards_trend: Improvements
6+
7+
- Fix a unit test failure introduced in 1.2.3. No on-target code was impacted.
8+
39
## 1.2.3 - Sept 12, 2023
410

11+
### :chart_with_upwards_trend: Improvements
12+
513
- General:
614
- Include the current MCU SDK version in the http client user agent header
715
- Zephyr:

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
BUILD ID: 3471
2-
GIT COMMIT: 3ebeeaa65
1+
BUILD ID: 3479
2+
GIT COMMIT: 2ae56da92

components/include/memfault/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ typedef struct {
1919
uint8_t patch;
2020
} sMfltSdkVersion;
2121

22-
#define MEMFAULT_SDK_VERSION { .major = 1, .minor = 2, .patch = 3 }
23-
#define MEMFAULT_SDK_VERSION_STR "1.2.3"
22+
#define MEMFAULT_SDK_VERSION { .major = 1, .minor = 2, .patch = 4 }
23+
#define MEMFAULT_SDK_VERSION_STR "1.2.4"
2424

2525
#ifdef __cplusplus
2626
}

tests/src/test_memfault_http_utils.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ extern "C" {
1313
#include "memfault/core/platform/device_info.h"
1414
#include "memfault/http/http_client.h"
1515
#include "memfault/http/utils.h"
16+
#include "memfault/version.h"
1617

1718
const struct MemfaultDeviceInfo g_device_info_default = {
1819
.device_serial = "DEMOSERIAL",
@@ -97,7 +98,7 @@ TEST(MfltHttpClientUtils, Test_MfltHttpClientPost) {
9798
const char *expected_string =
9899
"POST /api/v0/chunks/DEMOSERIAL HTTP/1.1\r\n"
99100
"Host:chunks.memfault.com\r\n"
100-
"User-Agent:MemfaultSDK/0.0.0\r\n"
101+
"User-Agent:MemfaultSDK/" MEMFAULT_SDK_VERSION_STR "\r\n"
101102
"Memfault-Project-Key:00112233445566778899aabbccddeeff\r\n"
102103
"Content-Type:application/octet-stream\r\n"
103104
"Content-Length:123\r\n\r\n";
@@ -129,7 +130,7 @@ TEST(MfltHttpClientUtils, Test_MfltHttpClientGetOtaPayloadUrl) {
129130
const char *expected_string =
130131
"GET /api/v0/releases/latest/url?&device_serial=DEMOSERIAL&hardware_version=main-proto&software_type=main&current_version=1.0.0 HTTP/1.1\r\n"
131132
"Host:device.memfault.com\r\n"
132-
"User-Agent:MemfaultSDK/0.0.0\r\n"
133+
"User-Agent:MemfaultSDK/" MEMFAULT_SDK_VERSION_STR "\r\n"
133134
"Memfault-Project-Key:00112233445566778899aabbccddeeff\r\n"
134135
"\r\n";
135136

@@ -172,7 +173,7 @@ TEST(MfltHttpClientUtils, Test_MfltHttpClientGetOtaPayload) {
172173
const char *expected_string =
173174
"GET /path/to/ota/payload/yay HTTP/1.1\r\n"
174175
"Host:example.ota.payload.com\r\n"
175-
"User-Agent:MemfaultSDK/0.0.0\r\n"
176+
"User-Agent:MemfaultSDK/" MEMFAULT_SDK_VERSION_STR "\r\n"
176177
"\r\n";
177178

178179
STRCMP_EQUAL(expected_string, ctx.buf);
@@ -190,7 +191,7 @@ TEST(MfltHttpClientUtils, Test_MfltHttpClientGetOtaPayloadNoPath) {
190191
const char *expected_string =
191192
"GET / HTTP/1.1\r\n"
192193
"Host:example.ota.payload.com\r\n"
193-
"User-Agent:MemfaultSDK/0.0.0\r\n"
194+
"User-Agent:MemfaultSDK/" MEMFAULT_SDK_VERSION_STR "\r\n"
194195
"\r\n";
195196

196197
STRCMP_EQUAL(expected_string, ctx.buf);

0 commit comments

Comments
 (0)