Set ID's in the input number and use it inside the template with buffer.from

Sorry for bad English.
I'm trying to create a dashboard to command 60 ID's via TPC/IP.
But I need help to set values ​​from 1 to 60, without having to keep changing the tamplate. Is there any way?
Ex:
msg.payload = Buffer.from([0x0?,0x41,0x16,0x00,0x00,0xA8,0x38]);
return msg;
print

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