Skip to main content
17-Peridot
March 9, 2022
Solved

DateTime Property in ThingTemplate

  • March 9, 2022
  • 1 reply
  • 1151 views

We was using 10 datetime remote properties in Thing from Thingtemplate in all services. Hereafter those properties wont receive data from device. So we planned to pass new Date() time in all services. Is there any option to set current time in all those properties directly instead of editing all services. ??

Best answer by PaiChung

You can set them in composer or write a service to fill them in? You can edit the ThingTemplate as well and provide a default value for each of those properties.

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
March 9, 2022

You can set them in composer or write a service to fill them in? You can edit the ThingTemplate as well and provide a default value for each of those properties.

17-Peridot
March 11, 2022

Every time when the services invoking those properties, it should fetch the current time. If iam editing the ThingTemplate to provide a default value for each of those properties, the default value which saved only will pass to services everytime. That value becomes a past value in one minute right.