# Make summon button wait longer for CPE response

**URL:** <https://forum.genieacs.com/t/make-summon-button-wait-longer-for-cpe-response/7265>\
**Category:** Help\
**Created:** [December 10, 2025, 11:03pm UTC](https://forum.genieacs.com/t/make-summon-button-wait-longer-for-cpe-response/7265 "2025-12-10T23:03:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dotline](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@dotline](https://forum.genieacs.com/u/dotline)\
**Post date:** [December 10, 2025, 11:03pm UTC](https://forum.genieacs.com/t/make-summon-button-wait-longer-for-cpe-response/7265/1 "2025-12-10T23:03:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Nabi](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@Nabi](https://forum.genieacs.com/u/Nabi)\
**Post date:** [December 11, 2025, 1:13pm UTC](https://forum.genieacs.com/t/make-summon-button-wait-longer-for-cpe-response/7265/2 "2025-12-11T13:13:27Z")

</div>

![Zrzut ekranu 2025-12-11 140646](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/6/65503f174cd28ea6a6f9f16c9aa1b21a3ba3b523.jpeg)

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

```auto

```

---

<div class="post-metadata">

**Author:** ![dotline](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@dotline](https://forum.genieacs.com/u/dotline)\
**Post date:** [December 11, 2025, 10:30pm UTC](https://forum.genieacs.com/t/make-summon-button-wait-longer-for-cpe-response/7265/3 "2025-12-11T22:30:23Z")

</div>

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).
