Define ANJAY_DEFAULT_SEND_FORMAT
Defined in File anjay_config.h
Define Documentation
-
ANJAY_DEFAULT_SEND_FORMAT
Value of Content-Format used in Send messages. Only a few specific values are supported:
AVS_COAP_FORMAT_NONEmeans no default value is used and Anjay will decide the format based on the what is available.AVS_COAP_FORMAT_OMA_LWM2M_CBORAnjay will generate a Send message in LwM2M CBOR format.AVS_COAP_FORMAT_SENML_CBORAnjay will generate a Send message in SenML CBOR format.AVS_COAP_FORMAT_SENML_JSONAnjay 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.