edgexfoundry / go-mod-core-contracts

Owner: Core/Support WG
Apache License 2.0
27 stars 67 forks source link

feat: Add CBOR encode and decode for BaseReading #937

Closed weichou1229 closed 1 month ago

weichou1229 commented 1 month ago

Since BinaryReading is decoded by CBOR, we should add UnmarshalCBOR for checking the nil value

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

PR Checklist

Please check if your PR fulfills the following requirements:

Testing Instructions

Run make test.

New Dependency Instructions (If applicable)