Skip to content

Instantly share code, notes, and snippets.

@Vzor-
Created April 26, 2020 05:16
Show Gist options
  • Save Vzor-/4e23b6b3179067cf19aebf1125b9a0bd to your computer and use it in GitHub Desktop.
Save Vzor-/4e23b6b3179067cf19aebf1125b9a0bd to your computer and use it in GitHub Desktop.
#include <Arduino.h>
#include <esp_log.h>
void setup() {
Serial.begin(115200);
String a = "test";
String b = "12345678";
String out = a + b;
log_printf("%s + %s = %s\n", a, b, out);
for (int i = 0; i < out.length(); i++) {
log_printf("%c", out.charAt(i));
}
}
void loop() {
// put your main code here, to run repeatedly:
}
// output:
// test + 12345678 = \��?␏
// test12345678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment