{"id":334,"date":"2019-01-18T14:59:16","date_gmt":"2019-01-18T14:59:16","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=334"},"modified":"2019-01-20T12:26:41","modified_gmt":"2019-01-20T12:26:41","slug":"ascii-char-strings","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/strings\/ascii-char-strings","title":{"rendered":"ASCII char strings"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Create a string containing values<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>  char c_buffer[22];\n  sprintf(c_buffer, \"value1: %u, value2:%u\", variable1, variable2);\n  nexSerial.print(c_buffer);<\/code><\/pre>\n\n\n\n<p>Value formats are same as for printf &#8211; <a href=\"http:\/\/www.cplusplus.com\/reference\/cstdio\/printf\/\">see here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a string containing values Value formats are same as for printf &#8211; see here<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-strings"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":2,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":337,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/334\/revisions\/337"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}