Code is not executed in Processing, but in p5.js Web Editor

There’s no guarantee that the array deviceList[] will be fully filled when the code reaches this line exact: deviceList[1].id within setup()!