Closed AlexBGoode closed 2 years ago
dev.Device(detectOpts = {timeout: 15, autoLogin: false});
I'm not familiar with this syntax; I think maybe it should just be:
dev.Device({timeout: 15, autoLogin: false});
But the real reason you're having trouble is almost certainly that timeout
is in milliseconds, not seconds, so you're not giving it enough time. Try 15000
, for example—the default value is 10000
.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Hello
Cannot figure out how to call Detector of any relevant code from my node-red flow. Tried many variants around
with no success
In the best case, I get
UnhandledPromiseRejectionWarning: Error: Could not detect any matching PS4 device ...
However, the command line execution works well this way: # npx ps4-waker search { "type": "device", "statusLine": "200 Ok", "statusCode": "200", "status": "Ok", ... }