From 1f6f3f4f481082c84f8970669e4c816aa5df5c24 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Thu, 9 Jan 2025 11:42:22 +0100 Subject: [PATCH] add example --- doc/admin.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/admin.md b/doc/admin.md index 84fdb2959..f07168244 100644 --- a/doc/admin.md +++ b/doc/admin.md @@ -425,6 +425,24 @@ If this flag is activated, last measure arrived to Device IoTAgent without be pr lastMeasure field with in timestamp. This flag is overwritten by `storeLastMeasure` flag in group or device. This flag is disabled by default. +For example in a device document stored in MongoDB will be extended with a subdocument named lastMeasure like this: + +```json +{ + "lastMeasure": { + "timestamp": "2025-01-09T10:35:33.079Z", + "measure": [ + [ + { + "name": "level", + "type": "Text" + } + ] + ] + } +} +``` + ### Configuration using environment variables Some of the configuration parameters can be overriden with environment variables, to ease the use of those parameters