HomeSeer / node-red-contrib-homeseer

HomeSeer Nodes for Node-RED
GNU Affero General Public License v3.0
5 stars 4 forks source link

Problem sending a status with specific caracter (&) from node-red #11

Closed goldriver2 closed 3 years ago

goldriver2 commented 3 years ago

I entered a ticket in homeseer support but I guess it should have been entered here

I have a string containing the "&" caracter that i am trying to send to a device status but everything after the "&" caracters gets truncated.

exemple: msg.payload.status = abcdefg&12345, only abcdefg makes it in the device status, the &12345 gets truncated.

spudwebb commented 3 years ago

I think we need to encode the status using encodeURIComponent before sending it to homeseer https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent

goldriver2 commented 3 years ago

Thanks for looking into this

spudwebb commented 3 years ago

This is fixed in 1.0.5