Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/protocols/cbor/main/
Dcbor_example_main.c180 CborEncoder array_encoder; in app_main() local
182 cbor_encoder_create_array(&root_encoder, &array_encoder, 5); // [ in app_main()
184 cbor_encoder_create_map(&array_encoder, &map_encoder, 3); // { in app_main()
201 cbor_encoder_close_container(&array_encoder, &map_encoder); // } in app_main()
203 cbor_encode_float(&array_encoder, 3.14); in app_main()
205 cbor_encode_simple_value(&array_encoder, 99); in app_main()
207 cbor_encode_text_stringz(&array_encoder, "2019-07-10 09:00:00+0000"); in app_main()
209 cbor_encode_undefined(&array_encoder); in app_main()
210 cbor_encoder_close_container(&root_encoder, &array_encoder); // ] in app_main()