Skip to main content
Cleaned up typos I should have caught the first time.
Source Link
JRobert
  • 15.4k
  • 3
  • 25
  • 53

If your goal is really to print the value from XML, you don't need to worry about types, as long as you believe the XML to be correctly formed. The value given withingin the XML file is in all cases, aalready character string (representing - just print it. The conversionconverting from string to variable (sprintf()) and back to string (Serial.print() or printf()) is unnecessary.

If your goal is really to print the value from XML, you don't need to worry about types, as long as you believe the XML to be correctly formed. The value given withing the XML file is in all cases, a character string (representing - just print it. The conversion from string to variable (sprintf()) and back to string (Serial.print() or printf()) is unnecessary

If your goal is really to print the value from XML, you don't need to worry about types, as long as you believe the XML to be correctly formed. The value in the XML file is already character string just print it. The converting from string to variable (sprintf()) and back to string (Serial.print() or printf()) is unnecessary.

Source Link
JRobert
  • 15.4k
  • 3
  • 25
  • 53

If your goal is really to print the value from XML, you don't need to worry about types, as long as you believe the XML to be correctly formed. The value given withing the XML file is in all cases, a character string (representing - just print it. The conversion from string to variable (sprintf()) and back to string (Serial.print() or printf()) is unnecessary