I have already been told, and read that using a "String" instead of a "string" (char array) in a microcontroller is a bad idea due the indeterminant amount of memory that the "String" will occupy.
Is this still the case or has some magic occur in the compiler to make "String" a safe alternative to use in microcontroller code?
The reason why I ask the question is that because I just started working with bluetooth with the aim of using for a Android based GUI/HMI for the CAN logger I have for the Teensy4.1.
I was looking at the Sparkfun HM-1xx library and guess what, "String" declarations. Puzzled I asked Sparkfun if this was "OK".
So then I was looking at the various Android apps and thought Virtuino looked interesting. I opened the VirtuinoCM library and guess what, "String" declarations.
There is a positng in the forum about using Virtuino and creating your own library for instead of VirtuinoCM and the poster has "String" declarations.
Did I miss the memo in which using "String" in microcontrollers at will is now a safe and will not cause any potential instability/intermittent bugs?
If so when/how did this occur?
Thanks
Bruce
Is this still the case or has some magic occur in the compiler to make "String" a safe alternative to use in microcontroller code?
The reason why I ask the question is that because I just started working with bluetooth with the aim of using for a Android based GUI/HMI for the CAN logger I have for the Teensy4.1.
I was looking at the Sparkfun HM-1xx library and guess what, "String" declarations. Puzzled I asked Sparkfun if this was "OK".
So then I was looking at the various Android apps and thought Virtuino looked interesting. I opened the VirtuinoCM library and guess what, "String" declarations.
There is a positng in the forum about using Virtuino and creating your own library for instead of VirtuinoCM and the poster has "String" declarations.
Did I miss the memo in which using "String" in microcontrollers at will is now a safe and will not cause any potential instability/intermittent bugs?
If so when/how did this occur?
Thanks
Bruce