[Device] ERROR: no handler for device.send()

I get this every once and a while when I reboot my agent (or device, I haven’t figured out which one). It doesn’t happen 100% of the time, is it a timing thing, or is something really missing? If so, which callback (device.send(“foo”))?

That message comes from the device, and it indicates that your agent code has done a device.send("foo",...) when there’s no corresponding agent.on("foo",...) handler in the device code. Or at least, that’s the intention; there shouldn’t be any timing issues as long as the device code registers all its agent.on handlers at startup.

Peter