Make summon button wait longer for CPE response

I have a problem. A particular brand of TP-Link router responds (contacts CWMP) to the summon command around 5-8 seconds later. Yet when I go to the device page on genieacs-ui and press summon it times out after 3-4 seconds.

I inspected the source code and found in bin/genieacs-ui, or lib/ui/api.ts,

router.post("/devices/:id/tasks", async (ctx) => {
...
const onlineThreshold = getConfig(
ctx.state.configSnapshot,
"cwmp.deviceOnlineThreshold",

So far so good, now I know I need to set the value of cwmp.deviceOnlineThreshold. But how?

I tried lots of things, creating a config JSON file, setting the DEVICE_ONLINE_THRESHOLD variable, but nothing worked. Eventually I just had to hardcode a value to onlineThreshold in the script itself.

Here’s my question: how can I set DEVICE_ONLINE_THRESHOLD or cwmp.deviceOnlineThreshold so that it is picked up by genieacs-ui?

You can try here but I don’t know if it’s a good solution


Thank you, this was the answer! I tried it and it worked.

Go to the Admin page of genieacs-ui, click on “New config” (poorly named, something like “Add key” would be much better), enter cwmp.deviceOnlineThreshold and a value (in my case 12000 for 12 seconds).