V3 Migration - devices.yaml not picked up #177
-
Hi all, devices.yaml(sorry not able to put it inside code format)
However below is the devices file in json format which is picked up by the device service
Could you please let us know how to ensure that the device service picks up devices.yaml file in V3? Thank You, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Indentation in YAML is very important. Also the casing for most items (except Protocol elements) must be camelCase Try this:
|
Beta Was this translation helpful? Give feedback.
-
CSDK currently only supports device files in JSON format. See https://github.com/edgexfoundry/device-sdk-c/blob/b62e37af488d81aa36bc8e7f628d0bcafa679f3c/src/c/service.c#L486-L526. |
Beta Was this translation helpful? Give feedback.
-
Thank you @FelixTing and @lenny-intel for the responses. For now I will go ahead with JSON format in V3.. |
Beta Was this translation helpful? Give feedback.
CSDK currently only supports device files in JSON format. See https://github.com/edgexfoundry/device-sdk-c/blob/b62e37af488d81aa36bc8e7f628d0bcafa679f3c/src/c/service.c#L486-L526.