Home
last modified time | relevance | path

Searched refs:pt_buffer (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/
Dlwm2m_rw_plain_text.c77 static char pt_buffer[42]; variable
86 n = vsnprintk(pt_buffer, sizeof(pt_buffer), format, vargs); in plain_text_put_format()
88 if (n < 0 || n >= sizeof(pt_buffer)) { in plain_text_put_format()
92 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), pt_buffer, n); in plain_text_put_format()
135 len = lwm2m_ftoa(value, pt_buffer, sizeof(pt_buffer), 15); in plain_text_put_float()
136 if (len < 0 || len >= sizeof(pt_buffer)) { in plain_text_put_float()
141 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), pt_buffer, len); in plain_text_put_float()
Dlwm2m_rw_json.c191 static char pt_buffer[42]; variable
219 n = vsnprintk(pt_buffer, sizeof(pt_buffer), format, vargs); in number_to_string()
221 if (n < 0 || n >= sizeof(pt_buffer)) { in number_to_string()
232 len = lwm2m_ftoa(value, pt_buffer, sizeof(pt_buffer), 15); in float_to_string()
233 if (len < 0 || len >= sizeof(pt_buffer)) { in float_to_string()
243 return snprintk(pt_buffer, sizeof(pt_buffer), "%u:%u", value->obj_id, value->obj_inst); in objlnk_to_string()
286 fd->json.obj.float_obj.val_float.start = pt_buffer; in json_float_object_write()
404 fd->json.obj.string_obj.val_string = pt_buffer; in json_objlnk_object_write()
431 len = snprintk(pt_buffer, sizeof(pt_buffer), in put_begin()
435 len = snprintk(pt_buffer, sizeof(pt_buffer), in put_begin()
[all …]
Dlwm2m_rw_senml_json.c300 static char pt_buffer[42]; variable
459 len = lwm2m_ftoa(value, pt_buffer, sizeof(pt_buffer), 15); in float_to_string()
460 if (len < 0 || len >= sizeof(pt_buffer)) { in float_to_string()
470 return snprintk(pt_buffer, sizeof(pt_buffer), "%u:%u", value->obj_id, value->obj_inst); in objlnk_to_string()
517 fd->json.obj.float_bn_t_obj.val_float.start = pt_buffer; in json_float_object_write()
527 fd->json.obj.float_bn_obj.val_float.start = pt_buffer; in json_float_object_write()
537 fd->json.obj.float_t_obj.val_float.start = pt_buffer; in json_float_object_write()
546 fd->json.obj.float_obj.val_float.start = pt_buffer; in json_float_object_write()
709 fd->json.obj.string_bn_obj.val_string = pt_buffer; in json_objlnk_object_write()
716 fd->json.obj.string_obj.val_string = pt_buffer; in json_objlnk_object_write()
[all …]