typeError: msg.payload.replace is not a function
Hi @fpravin22 welcome to the forum,
Can you provide more details of the error you are hitting?
What does msg.payload contain?
replace is a function only available on String types. This error suggests you are trying to use it on a different type of object. You can use the Debug node to see exactly what your message contains.
I want to read data from input so i take function node and write function as:
msg.payload = msg.payload.replace("temp=", "").replace("'c", "");
then error is occured
Put a debug node before the function, show us what is in the payload. (expand and objects properties)
Also, might be worth spending 10 mins reading this...