Lines Matching refs:content_format
1635 static int do_read_op(struct lwm2m_message *msg, uint16_t content_format) in do_read_op() argument
1637 switch (content_format) { in do_read_op()
1640 return do_read_op_opaque(msg, content_format); in do_read_op()
1644 return do_read_op_plain_text(msg, content_format); in do_read_op()
1649 return do_read_op_tlv(msg, content_format); in do_read_op()
1655 return do_read_op_json(msg, content_format); in do_read_op()
1674 LOG_ERR("Unsupported content-format: %u", content_format); in do_read_op()
1679 static int do_composite_read_op(struct lwm2m_message *msg, uint16_t content_format) in do_composite_read_op() argument
1681 switch (content_format) { in do_composite_read_op()
1694 LOG_ERR("Unsupported content-format: %u", content_format); in do_composite_read_op()
1787 int lwm2m_perform_read_op(struct lwm2m_message *msg, uint16_t content_format) in lwm2m_perform_read_op() argument
1808 ret = coap_append_option_int(msg->out.out_cpkt, COAP_OPTION_CONTENT_FORMAT, content_format); in lwm2m_perform_read_op()
2007 static int do_discover_op(struct lwm2m_message *msg, uint16_t content_format) in do_discover_op() argument
2009 switch (content_format) { in do_discover_op()
2014 LOG_ERR("Unsupported format: %u", content_format); in do_discover_op()
3022 static int do_send_op(struct lwm2m_message *msg, uint16_t content_format, in do_send_op() argument
3025 switch (content_format) { in do_send_op()
3037 LOG_ERR("Unsupported content-format for /dp: %u", content_format); in do_send_op()
3227 int lwm2m_perform_composite_read_op(struct lwm2m_message *msg, uint16_t content_format, in lwm2m_perform_composite_read_op() argument
3236 ret = coap_append_option_int(msg->out.out_cpkt, COAP_OPTION_CONTENT_FORMAT, content_format); in lwm2m_perform_composite_read_op()
3413 int do_composite_read_op_for_parsed_list(struct lwm2m_message *msg, uint16_t content_format, in do_composite_read_op_for_parsed_list() argument
3426 switch (content_format) { in do_composite_read_op_for_parsed_list()
3439 LOG_ERR("Unsupported content-format: %u", content_format); in do_composite_read_op_for_parsed_list()
3523 uint16_t content_format; in lwm2m_send_cb() local
3555 content_format = LWM2M_FORMAT_APP_SENML_CBOR; in lwm2m_send_cb()
3557 content_format = LWM2M_FORMAT_APP_SEML_JSON; in lwm2m_send_cb()
3609 ret = select_writer(&msg->out, content_format); in lwm2m_send_cb()
3621 ret = do_send_op(msg, content_format, &lwm2m_path_list); in lwm2m_send_cb()