For one of my projects I am currently working on requires an integer to be converted to a string. I am working with a Particle electron on the Particle Web IDE.
My lines of code
int wireVal = 0;
Serial.print("wireVal is: “+ String(wireVal)+ " gbye”); // this crashes firmware
crashes firmware, giving a red SOS led, entering safe mode. I have also tried converting wireVal to a string outside the print statement but was unsucessful.
I have used this same syntax on an Arduino but am unsure why this will not work on an Electron. Any help is appreciated. Thanks.