danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
178 stars 94 forks source link

LoadAsync with listen / follow #88

Open heckradr opened 2 years ago

heckradr commented 2 years ago

Hello. I'm wondering if I can use the LoadAsync command in combination with the listen / follow (or follow-only) parameter? I tried it but without success.

I want to get automatically an update for example if an interface changed its state.

I can't find any information about that in the docs or examples. I assume this is not a planned feature in tik4net yet.

uniqueitmail commented 8 months ago

Please help this issue for live traffic and interface activity changes reports throught real-time. Thank you. @Deantwo @danikf

Deantwo commented 8 months ago

I want to get automatically an update for example if an interface changed its state.

I don't think the API supports this. And asking highlevel questions like this on an library likely won't get you an answer. I suggest asking on the MikroTik forum if this is even something the API supports. If it does, then maybe the tik4net library can do it or be expanded to support that feature if it doesn't already.

Looking quickly at the API documentation, it sounds like the API supports a listen command on interfaces. https://help.mikrotik.com/docs/display/ROS/API#API-/cancel,simultaneouscommands

Either way, I suggest asking on the forum and learning to use the more basic API commands.