I have set up Dashboard to send IR commands to a Set Top Box with rosstalk.sendMessage(). I want to program it to change the channel by sending a series of 4 commands. However it is only picking up one or two of the commands. It looks like a need to set a delay between each. Is there a way to do this without using an async function? I have tried implementing a pause command similar to below but that did not work.
rosstalk.sendMessage(command for 1);
return 500;
rosstalk.sendMessage(command for 6);
return 500;
rosstalk.sendMessage(command for 0);
return 500;
rosstalk.sendMessage(command for 7);