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?
