From f850fd5947516ddf1be3e0a8e0b42db08dbee953 Mon Sep 17 00:00:00 2001 From: "Sam.Hsu" Date: Fri, 5 Aug 2022 14:22:05 +0800 Subject: [PATCH 1/3] feat: Support JSON result format Signed-off-by: Sam.Hsu --- 0001-support-json-result-format.patch | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 0001-support-json-result-format.patch diff --git a/0001-support-json-result-format.patch b/0001-support-json-result-format.patch new file mode 100644 index 0000000..8dc05f9 --- /dev/null +++ b/0001-support-json-result-format.patch @@ -0,0 +1,9 @@ +37a38 +> Raw json.RawMessage `bson:"raw" json:"raw"` // Device sensor raw data value +50a52 +> Raw json.RawMessage `json:"raw"` // Device sensor raw data value +67a70,73 +> test.Raw = []byte(r.Value) +> if json.Valid(test.Raw) == false { +> test.Raw = []byte("{}") +> } From 2e6bc04d863b947d0bd74912ce78d604885a3cb2 Mon Sep 17 00:00:00 2001 From: samhsu427 <55119387+samhsu427@users.noreply.github.com> Date: Fri, 5 Aug 2022 15:03:51 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0bb5d0b..98ca3e5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# edgex-go -edgex-go +### The repository contains patches provided by Advantech From dee0b2770f789c5d6000ae846c36042235760788 Mon Sep 17 00:00:00 2001 From: samhsu427 <55119387+samhsu427@users.noreply.github.com> Date: Fri, 5 Aug 2022 15:04:22 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98ca3e5..9195ba2 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -### The repository contains patches provided by Advantech +##### The repository contains patches provided by Advantech