Skip to content

Question - How to use "logout/close" to run a api call every 5 sec. #19

@grawsom

Description

@grawsom

Let's take ref. in you example/device_info.js.
If i execute that every 5 sec. after 4 or 5 times I get a
ResponseErrorException: 108003: Already login
Just used this one for test, but if that one is not working, then the ones I want to use will neither.

Believe there must be a way to close connection/logout or something like that, but I don't know how to program that.

What I am after is a way to receive SMS's, but for that I need to "check" every X sec.
I have the flow and nodes in place, but it's not bulletproff.
I check every 10 sec. (but want to go lower) if there is new sms, I save that one in a folder, then I monitor that folder, and gets the information in sms, and then call the delete function

I'm trying to get it to work in the Node-red package, but must be sure that it works in the API, before taking it further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions