Define ANJAY_DEFAULT_SEND_FORMAT

Define Documentation

ANJAY_DEFAULT_SEND_FORMAT

Value of Content-Format used in Send messages. Only a few specific values are supported:

  • AVS_COAP_FORMAT_NONE means no default value is used and Anjay will decide the format based on the what is available.

  • AVS_COAP_FORMAT_OMA_LWM2M_CBOR Anjay will generate a Send message in LwM2M CBOR format.

  • AVS_COAP_FORMAT_SENML_CBOR Anjay will generate a Send message in SenML CBOR format.

  • AVS_COAP_FORMAT_SENML_JSON Anjay will generate a Send message in SenML JSON format.

Note that to use a specific format it must be available during compilation.

The default value defined in CMake build scripts is AVS_COAP_FORMAT_NONE.