edgexfoundry / device-sdk-c

Owner: Device WG
Apache License 2.0
42 stars 42 forks source link

fix: Read actual status code after a POST device API call #471

Closed FelixTing closed 1 year ago

FelixTing commented 1 year ago

Also update the discovery example to v3.

fix: #452

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-sdk-c/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

Testing Instructions

Run EdgeX stack Comment out the following code snippet: https://github.com/edgexfoundry/device-sdk-c/blob/e31ab6e2f568dd8fbe7ffcfa2103cfb092f62c0d/src/c/devman.c#L192-L196 Build and run the discovery example (src/c/examples/discovery/template.c) Add ProvisionWatcher

# at src/c/examples/discovery
curl -X POST -d@watcher1.json 0:59881/api/v3/provisionwatcher

Restart the example device service Should be seeing logs related to device updates