Console output shows duplicate execution with small time lag

#1

I am using a standard NODEMCU ESP8266 based IOT device to connect to AWS and integrate with my Alexa device. The IOT device is working. However, the console output shows that actions fired by ‘mgos_aws_shadow.c’ are being executed twice with a small time lag. I have attached a snapshot of the console output and draw attention to time lines :

  1. 18:16:09:267 and 18:16:09:325 - line 282 of mgos_aws_shadow.c
  2. 18:16:09:655 and 18:16:09:666 - line 510 of mgos_mqtt.c
  3. 18:16:09:928 and 18:16:09:947 - line 334 of mgos_aws_shadow.c
    and the repeated lines are from different modules. I am also reproducing my mos.yml file in case there is some error in the includes or library modules.
    Please help to resolve this matter.

My mos.yml file :

author: mongoose-os
description: A Mongoose OS app skeleton
version: 1.0
libs_version: 2.13.0
modules_version: 2.13.0
mongoose_os_version: 2.13.0
# libs_version: ${mos.version}
# modules_version: ${mos.version}
# mongoose_os_version: ${mos.version}

# Optional. List of tags for online search.
tags:
  - c

# List of files / directories with C sources. No slashes at the end of dir names.
sources:
  - src

# List of dirs. Files from these dirs will be copied to the device filesystem
filesystem:
  - fs

# Custom configuration entries, settable via "device configuration"
# Below is a custom firmware configuration example.
# Uncomment and modify according to your needs:

# config_schema:
#  - ["my_app", "o", {title: "My app custom settings"}]
#  - ["my_app.bool_value", "b", false, {title: "Some boolean value"}]
#  - ["my_app.string_value", "s", "", {title: "Some string value"}]
#  - ["my_app.int_value", "i", 123, {title: "Some integer value"}]

# These settings get compiled into the C structure, and can be accessed
# from the C code this way:
#
# printf("Hello from %s!\n", mgos_sys_config_get_device_id());
#
# Settings are cool: can be modified remotely without full firmware upgrade!
#
# To see all available compiled settings, buid the firmware and open
# build/gen/mgos_config.h file.
#
# Also, in this config_schema section, you can override existing
# settings that has been created by other libraries. For example, debug log
# level is 2 by default. For this firmware we can override it to 3:
#
config_schema:
  - ["debug.level","i",3,{title:"Debug level is verbose"}]
  - ["shadow.ota_enable","b",false,{title: "ota shadow is disabled"}]
  - ["mqtt.will_topic","s","doorman/lastwill/instruction",{title: "Will topic"}]
  - ["mqtt.will_message","s","{\"state\":{\"reported\":{\"connected\":0}}}",{title: "Will message"}]
#  - ["sys.mount.path","s","/mnt",{title: "path of the file"}]
#  - ["sys.mount.dev_type","s","sysflash",{title: "file located in system flash"}]
#  - ["sys.mount.fs_type","s","SPIFFS",{title: "Kind of file system"}]
#  - ["sys.mount.fs_opts","s","{\"addr\":3145728, \"size\": 524288}",{title: "Size and location of file system"}]
  - ["devtab.dev0.name", "data"]
  - ["devtab.dev0.type", "part"]
  - ["devtab.dev0.opts", '{"dev": "sfl0", "offset": 0x300000, "size": 0x80000}']
  - ["fstab.fs0.dev", "data"]
  - ["fstab.fs0.type", "SPIFFS"]
  - ["fstab.fs0.opts", '{"bs": 4096, "ps": 128, "es": 4096}']
  - ["fstab.fs0.path", "/fld"]
  - ["fstab.fs0.create", true]


libs:
 - origin: https://github.com/mongoose-os-libs/ca-bundle
 - origin: https://github.com/mongoose-os-libs/aws
 - origin: https://github.com/mongoose-os-libs/dash
 - origin: https://github.com/mongoose-os-libs/mqtt
 - origin: https://github.com/mongoose-os-libs/http-server
# - origin: https://github.com/mongoose-os-libs/ota-shadow
# - origin: https://github.com/mongoose-os-libs/ota-http-client
# - origin: https://github.com/mongoose-os-libs/ota-http-server
 - origin: https://github.com/mongoose-os-libs/rpc-service-config
 - origin: https://github.com/mongoose-os-libs/rpc-service-fs
 - origin: https://github.com/mongoose-os-libs/rpc-uart
# - origin: https://github.com/mongoose-os-libs/shadow
 - origin: https://github.com/mongoose-os-libs/sntp
 - origin: https://github.com/mongoose-os-libs/wifi
 - origin: https://github.com/mongoose-os-libs/rpc-common
 - origin: https://github.com/mongoose-os-libs/spi
 - origin: https://github.com/mongoose-os-libs/vfs-fs-lfs
 - origin: https://github.com/mongoose-os-libs/vfs-fs-spiffs
 - origin: https://github.com/mongoose-os-libs/vfs-dev-part
 - origin: https://github.com/mongoose-os-libs/vfs-dev-spi-flash
 - origin: https://github.com/mongoose-os-libs/vfs-common
 - origin: https://github.com/mongoose-os-libs/fstab
 

# Used by the mos tool to catch mos binaries incompatible with this file format