Printing to LCD without inverted Commas

We are trying to print msg.payload to an LCD screen.
msg.payload = "2151921480"

This prints the entire string to the LCD, is there a way to not print the inverted commas:
2151921480

tried using msg.payload.Value, still no luck.

thanks!

How are you printing it to the screen? The payload does not include the quotes so how you are printing it must be adding them.

Try msg.payload =Number(msg.payload)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.