Skip to content

can't tell if the connection is success  #66

@SmartTransp

Description

@SmartTransp

I have try to check if the connection was OK
and it's working by using this

connection = routeros_api.RouterOsApiPool(IP,user,pass)
print (connection.connected )
api = connection.get.api() ---> I notice that here I get sometimes exceptions , but I can't catch it

but all the time I get "False"( when the router is online and also when the router is offline )
why ?

How can I check if the conneciton is "Alive"?
how do read the "wrong pass" \ Timeout exception ?

did I miss something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions