Freezer Request and Reply Format Errors

Freezer Request and Reply Format Errors

Try Choose Step to reach the reply-format prediction and compare the bridge’s requested CBOR with the temperature resource’s available JSON.

Predict the format error for each freezer exchange.

CoAP

Accept · requested reply

Bridge → F17 temperature resource

GET /v1/freezers/f17/temp

Accept (option 17) = CBOR (format 60)

Requested CBOR reply

Request a CBOR reply

The bridge puts Accept in its GET request to ask for a CBOR reply.

Observe The GET reply shows 4.06 and the bridge skips the temperature decoder. In the PUT lane, the incoming body check stops the JSON settings and the tool reports 4.15.
Explain Accept names the desired GET reply format, so the JSON-only temperature resource returns 4.06 for a CBOR request. Content-Format identifies the submitted PUT body, so the CBOR-only configuration resource rejects the JSON upload with 4.15.

Technical boundaries. The comparison follows a temperature read and a separate configuration upload on the same freezer. Each resource is shown with a single supported format for its side of the exchange. The replay ends with the two errors before any retry or successful exchange is shown.

Back to the chapter