You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be very convenient if SafeString objects could support printing uint64_t and int64_t types. For my use case, I'm converting these types to hexadecimal (e.g. SafeString.print(num, HEX) like Serial.print(num, HEX)).
This is already supported by BufferedOutput, for example, as the Print object implements functionality that could likely be replicated over.
I understand this deviates from wstring as String doesn't support these types either, but it'd still be great to have.
The text was updated successfully, but these errors were encountered:
dakotahorstman
changed the title
Add support uint64_t or int64_t for SafeString.print
Add uint64_t or int64_t support for SafeString.printJan 8, 2025
Sure, I can look into creating a PR. I assume to test, I would need to upload those outlined in examples/SafeString_Tests to an Arduino and just see if it works? Any specific board(s) I should use/you want me to test with specifically?
It'd be very convenient if
SafeString
objects could support printinguint64_t
andint64_t
types. For my use case, I'm converting these types to hexadecimal (e.g.SafeString.print(num, HEX)
likeSerial.print(num, HEX)
).This is already supported by
BufferedOutput
, for example, as thePrint
object implements functionality that could likely be replicated over.I understand this deviates from wstring as
String
doesn't support these types either, but it'd still be great to have.The text was updated successfully, but these errors were encountered: