Guys,
Steadily progressing with my home battry automation project.
As an intermediate step to fully automatic operation i am building a manual control dashboard
I have a function node that i have been using an inject from within the editor to fire off - the function node works fine and has the following code in it
msg.payload = Buffer.from("aa55b07f02390b07010406001100fff6ff7f060a", "hex");
return msg;
Which is sent to the UDP out node and does what i expect - set the battery to 10% charge rate
However what i would like to do is take that same code an implement it as a dashboard button
So if i put that same Hex string into the Dashboard button and then link the output to the UDP out node i get some strange things happening
- If i set it as a string - it does not work to change anything with the inverter - no errors etc just nothing happens
- If i set the button type to be a buffer and paste the string without any quotes then i get an immediate message in the right hand corner of my browser - connection lost - i also lose connection to the Editor and have to reload that in my browser window.
- If i put the quotes nothing seems to happen either.
So the question - is there a way to tell the dashboard button to output a buffer as Hex or do i just need to link this to function nodes ?
Craig