Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change timeout in "deviceService.sendTwoWayRpcCommand(entityId,requestBody)" #10777

Open
hl1369 opened this issue May 13, 2024 · 0 comments
Assignees
Labels
question generic question

Comments

@hl1369
Copy link

hl1369 commented May 13, 2024

Hello Every body,
i need to decrease timeout of this command API:
deviceService.sendTwoWayRpcCommand(entityId,requestBody)

the default time is about 6 second and for my point is a large time!
i tried this method: (but didn't change!)

let entityId = self.ctx.datasources[0].entityId
let requestBody = {
method: method,
params: paramsbodyclr,
timeout: '500'
}
deviceService.sendTwoWayRpcCommand(entityId,requestBody)
.subscribe(
function success() {
console.log("send ok CLR");
},
function fail(rejection) {
console.log("timeout detect CLR");
}
);

any body can help?

@hl1369 hl1369 added the question generic question label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

2 participants