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
174 stars 93 forks source link

/interface/lte/info - no such item (4) #68

Closed iDeedz closed 4 years ago

iDeedz commented 4 years ago

Hi,

I've started playing with this library and have found that I am unable to retrieve the LTE info from the router.

I am using the following code to try and get information.

Dim connection = ConnectionFactory.OpenConnection(TikConnectionType.Api, IP, u, p) Dim loadCmd = connection.CreateCommandAndParameters("/interface/lte/info", "number", "0", "once", "") Dim response = loadCmd.ExecuteList()

We have a working version for php to get the LTE info, but this will have to be ported to a vb.net application.

Not sure if I am doing something wrong, or perhaps something else I am missing?

danikf commented 4 years ago

Take a look into debug window - you will see what API command is executed. Than use parameters in correct format. I would expect that "number" and "once" are different types of parameters.

D

iDeedz commented 4 years ago

Thank you @danikf

Will try again once I have a device to test with.