Community discussions

MUM Europe 2020

Search found 69 matches

by danikf
Wed Jan 01, 2020 5:21 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi everybody,

after more than one year - there is new version of tik4net.

Details:
https://github.com/danikf/tik4net/wiki/History

In hope it will be usefull,
D
by danikf
Sun Dec 22, 2019 3:46 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Can be used everywhere with supported .NET/.NETCore version.
D
by danikf
Mon Dec 02, 2019 1:17 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

/interface pppoe-server remove [find user=ex] Hi, the question is so called ever-green. Thanks nescafe2002 for answering it again and again :-) To make his life a little bit more easy, I have extended the wiki page about this scenario: https://github.com/danikf/tik4net/wiki/CRUD-examples-for-all-AP...
by danikf
Sat Nov 09, 2019 5:12 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

only work until ROS 6.45.2
doesn't work for ROS above 6.45.2 :)
Tested (and works OK) with my v6.45.6 RB493 (at least SSL version).
D
by danikf
Mon Feb 18, 2019 10:10 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Off topic?
Anyway:
* For android app: https://play.google.com/store/apps/deta ... oid.tikapp
* For app created by this API: https://visualstudio.microsoft.com/cs/xamarin/ (+ .NET core project)
D
by danikf
Sat Jan 12, 2019 1:38 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Yes, just take a copy of https://github.com/danikf/tik4net/blob/ ... terface.cs and include the properties:
Thanks - added to code base. Will be part ot the next release.

D
by danikf
Sat Jan 12, 2019 1:26 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Does anyone knows why the ConnectionBytes property of a FirewallFilter object always returns 0? Hi, ConnectionBytes is value from Avanced tab. If you want to read statistic of rule, you need "bytes", not "connection-bytes". I have added these values to source (will be part of the next release). ///...
by danikf
Sat Nov 17, 2018 12:25 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi all, I would need to get the real "speed rate" of an ethernet interface. Here you are (also commited to DEV branch). D using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace tik4net.Objects.Interface.Ethernet { /// <summary> /// /interface ethernet monito...
by danikf
Sat Nov 10, 2018 6:17 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Sorry, this is an unsupported feature: Hi, I must agree with nescafe2002. (IMHO RoMon telnet/ssh is unsupported either). I tried to workaround it (by some trick) but was not successfull. Some links to read: https://forum.mikrotik.com/viewtopic.php?t=99953 https://forum.mikrotik.com/viewtopic.php?t=...
by danikf
Sat Oct 27, 2018 7:10 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

ip bindings from ip/hotspot/ip-binding Here you are (and also commited in dev branch). Enjoy, D namespace tik4net.Objects.Ip.Hotspot { /// <summary> /// ip/hotspot/ip-binding /// /// IP-Binding HotSpot menu allows to setup static One-to-One NAT translations, allows to bypass specific HotSpot client...
by danikf
Thu Oct 25, 2018 12:12 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Is your mikrotik router properly configured? Which version of routeros do you use?

https://github.com/danikf/tik4net/wiki/SSL-connection

D
by danikf
Fri Oct 12, 2018 10:57 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

BTW, Is there document on how to go about using the dev version? Would this be possible with nuget? Hi, just download sources from github (Git clone or *.zip download), reference them as projects and rebuild your application. This scenario is usefull for debuging non-trivial problems and also for u...
by danikf
Thu Oct 11, 2018 6:53 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

xxxxxxx/print command returns more than one =port=xxxx row in one !re sentence (this behavior was not expected and also not supported). IMHO problem is, that there are two "port" fields - same name, different values. Works somehow because of their order ... I would preffer this "stupid" behavior to ...
by danikf
Thu Oct 11, 2018 6:06 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

When you reset no default the Mikrotik router(951Ui), it IP will become "0.0.0.0". So there is no other way for me to configure the router via MAC address. Hi, mac-telnet is complicated protocol - I have tried to find some libraries, but without success (.NET libraries :-) ). Not sure, but you can ...
by danikf
Thu Oct 11, 2018 6:03 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

now i have a small request.
can you add ip bindings object?
Hi,
what are you meaning by "ip binding object". Is it different from IpAddress object?

D
by danikf
Mon Oct 01, 2018 6:29 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

of course ...
...
... if you are able to read previous posts ...
var user = new HotspotUser()
{
    Name = "TEST",
    LimitUptime = "1:00:00",
    Password = "secretpass"
};
_connection.Save(user);
by danikf
Wed Sep 26, 2018 9:56 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Version 3.4. released.

https://github.com/danikf/tik4net/releases/tag/v3.4

Whats new:
tool/traceroute entity + helpers
tool/ping helpers
Command.ExecuteWithDuration fix
InterfaceMonitorTraffic fix

D
by danikf
Sun Sep 23, 2018 3:51 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, fixed in dev branch: https://github.com/danikf/tik4net/commit/9e27b5bea2c7ac511e8d2e6d22c518ffeea6cb00 You can fix issues like this manually by creating new copy of entity and making some fields optional (IsMandatory=false) or by deleting them. Than just use your type in the same place as origin...
by danikf
Mon Sep 03, 2018 7:40 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, new version 3.3.0 released. Upgrade is recommended ! Whats new: Support for own tag sent to sync commands in commandText Native support for entities loaded in different way than /print Connection.LoadByName extension Connection extension methods for entity static methods Connection .ExecuteNonQu...
by danikf
Sat Sep 01, 2018 11:17 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, it will be part of the next release. https://github.com/danikf/tik4net/commit/6e953df828e2a33da5e2f9baba1d3115b5f67ddf Enjoy, D PS: see this tutorial for custom objects: https://github.com/danikf/tik4net/wiki/High-level-API-custom-entities https://github.com/danikf/tik4net/wiki/High-level-API-to...
by danikf
Sun Aug 12, 2018 2:14 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, you can wait for next release or use this code (taken from its code base). D /// <summary> /// Gets snapshot of actual traffic RX/TX values for given <paramref name="interfaceName"/>. /// </summary> public static InterfaceMonitorTraffic GetInterfaceMonitorTrafficSnapshot(ITikConnection connectio...
by danikf
Fri Aug 10, 2018 6:24 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Question (posted as Github issue):
To obtain the Rx and Tx values ​​of the interface, in which way it is done, thank you in advance.
Answer:
var ethIface = Connection.LoadSingle<Interface>(Connection.CreateParameter("name", "ether1"));
var rx = ethIface.RxByte;
D
by danikf
Wed Jul 25, 2018 9:18 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Use ConnectionFactory.OpenConnection/connection.Open method overload with port.
connection.Open(HOST, PORT, USER, PASS);
D
by danikf
Fri Jul 06, 2018 12:32 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,

new version 3.2.0.0 was released.

Whats new:
* Connection.Open fixed (mentioned by az1984, hardwarematik)
* New 6.43 login process supported (credits:DaveSchmid)

D
by danikf
Sat Jun 30, 2018 3:01 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

It is API related question :-)

The naive way (without using count-only) could be something like:
connection.LoadAll<UserProfile>().Where(u=>u.Comment="expired.user").Count();
D
by danikf
Sun Apr 01, 2018 6:13 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,
version 3.1.0.0 published.

Whats new:
* XML documentation embeded also in *.zip
* Connection open timeout support
* WOL support
* small improovements

Enjoy,
D
by danikf
Sun Apr 01, 2018 11:36 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi Mark, tik4net is just API - it allows you to perform all operations you are able to do with mikrotik API (and almost 100% operations you could achieve with mikrotik console). If you are missing some highlevel objects, you could ask someone/me for creating them or you could create classes by yours...
by danikf
Tue Jan 02, 2018 6:46 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Just published 3.0.1 version on nuget (*.zip is too large for this site).

Whats new:
*.xml documentation for visual studio.
by danikf
Sat Dec 30, 2017 5:23 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

I have just published version 3.0.0

Whats new:
* BETA: Support for NetCoreApp and NetStandard (functional with Xamarin on Android devices etc.)
* Some bug fixies and updates

Enjoy,
D
by danikf
Tue Apr 11, 2017 10:25 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, ad 1: Please remove "/print" sufix -> [TikEntity("/ip/hotspot/profile")] See https://github.com/danikf/tik4net/wiki/High-level-API-custom-entities for details. ad 2: You have to use .id property in format "*A" See https://github.com/danikf/tik4net/wiki/CRUD-examples-for-all-APIs#update-entities ...
by danikf
Sun Apr 09, 2017 3:49 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,

you must reference tik4net.objects.dll and import (use) namespace with tik4net extensions. I've updated previous example to full example class.

Hope it helps,
D
by danikf
Thu Apr 06, 2017 11:26 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

What about using some online converter? This is result of http://converter.telerik.com/ converter for projects root page examples: 1) Add references: * tik4net.dll * tik4net.objects.dll 2) Try to modify this example: Imports tik4net Imports tik4net.Objects Imports tik4net.Objects.Ip.Firewall Namespa...
by danikf
Sat Apr 01, 2017 4:21 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, just published new version 2.2.0.0 of tik4net library. Whats new: * API update to meet CRUD examples * multiline response (script) fix. Credits: pmishka * Adding CapsManRegistrationTable entity and support TimeSpan convertion. Credits: sebastienwarin Updates for .NET Core will be (hopefully) in ...
by danikf
Fri Mar 10, 2017 12:31 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, RTP is usualy based on UDP - so you can monitor the traffic (see tik4net.torch example project: https://github.com/danikf/tik4net/tree/master/tik4net.torch). If you want to examine every packet (sniffer?), may be you can use sniffer feature, but it will be IMHO very bad idea. It will be better t...
by danikf
Tue Feb 28, 2017 2:36 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,
take a look at connection.Encoding parameter of connection.

See https://github.com/danikf/tik4net/wiki/ ... characters for details.

D
by danikf
Sun Feb 05, 2017 3:55 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, probably yes - in general. You can perform every operation which you can script in mikrotik API :-) I don't have GSM modem connected to mikrotik so I can't test it. The code could be (not tested): ITikCommand smsCmd = connection.CreateCommand("/tool/sms/send", connection.CreateParameter("port", ...
by danikf
Tue Jan 17, 2017 9:56 pm
Forum: Scripting
Topic: How to display information without "!done\!re"?
Replies: 11
Views: 1145

Re: How to display information without "!done\!re"?

Hi, in this situation (modifying wireless interface) you can use name in position of id. So the code will be easy. mikrotik.Send("/interface/wireless/set"); mikrotik.Send("=ssid=IHaveChangeThis!"); mikrotik.Send(".id=wlan1"); But (as author of tik4net library) I have to recomend it :-) using tik4net...
by danikf
Sun Dec 11, 2016 8:02 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi all,
just created wiki example page for all CRUD scenarios for all APIs.

https://github.com/danikf/tik4net/wiki/ ... r-all-APIs

In hope you can see the flexibility of higlevel API,
D

BTW: thanks nescafe2002 for supporting other users :-)
by danikf
Fri Jul 08, 2016 5:46 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi all, version 2.1.0.0 (just .NET 4.6 support added) has been published (github/nuget). I will publish binaries in this phorum as soon as the error with attachment upload will be fixed. In this time I just get "HTTP Error". Any idea? Update 2016-07-16: dlls published (upload has been fixed) Stay tu...
by danikf
Wed Jun 29, 2016 12:48 am
Forum: Scripting
Topic: API Encoding [SOLVED]
Replies: 6
Views: 2630

Re: API Encoding [SOLVED]

Hi, with tik4net API it is just single-line-of-code. To set your own charset (default charset is ASCII) use this code: using tik4net; // ... connection = ConnectionFactory.OpenConnection(TikConnectionType.Api, HOST, USER, PASS); connection.Encoding = Encoding.GetEncoding("windows-1250"); See WIKI pa...
by danikf
Sat May 28, 2016 4:11 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

I have just published version 2.0.0.0. Whats new: * Encoding support * Refactoring - nested classes removed (breaking change!) * Bug fixies * DNS objects added * Ping object const string HOST = "127.0.0.1"; const int MAX_CNT = 100; List<ToolPing> responseList = new List<ToolPing>(); Exception respon...
by danikf
Sat May 28, 2016 12:10 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, easy soulution is to call your code per 5 sec (via JQuery) and show response in web UI. Or you can use async code and store responses (somehow) in memory (on you application server). When you do that, you can resturn more than one row to your JQuery request. But you have to be familiar with mul...
by danikf
Sat May 28, 2016 12:03 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, easy soulution is to call your code per 5 sec (via JQuery) and show response in web UI. Or you can use async code and store responses (somehow) in memor. When you do that, you can resturn more than one row to your JQuery request. But you have to be familiar with multithread code. List<ITikReSent...
by danikf
Fri May 27, 2016 4:46 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,

nice work!

what about using javascript (JQuery?) and loading current RX/TX state per 5 seconds?

D
by danikf
Tue Mar 08, 2016 1:17 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, just load the entity which is representing the eth1 interface, update its property 'Name' and save it via connection. Naive highevel api code: var list = Connection.LoadAll<Interface>(); var eth = list.Where(iface => iface.DefaultName == "ether1").Single(); eth.Name = "newName"; Connection.Save(...
by danikf
Sat Mar 05, 2016 3:06 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

by danikf
Fri Mar 04, 2016 8:46 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, there are many possibilities how to manage it. If you want to use this ADO like api, you should look at ITikReSentence interface (ExecuteList method returns IEnumerable<ITikReSentence>). So your code will be (for example): Dim iface = con.CreateCommand("/interface/print") Dim show = iface.Execut...
by danikf
Wed Feb 24, 2016 6:28 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, according to http://stackoverflow.com/questions/17023419/win-7-64-bit-dll-problems - I am expecting that there is some dependency on VS redistributable package in your custom code - not in tik4net ... tik4net, tik4net.objects references only: mscorlib.dll, system.dll, system.core.dll I am 100% s...
by danikf
Thu Feb 18, 2016 3:27 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Released new version 1.8.0.0.

Whats new:
* API-SSL support (alpha)
* Additional hotspot classes (credits: D-Bullock)
* Mikrotik time helper class (credits: D-Bullock)
* nuget support

Enjoy,
D
by danikf
Thu Feb 18, 2016 12:26 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi,

your help would be welcome.

1) Fork projekt on github
2) Do some changes & commit them
3) Send pull request

See https://guides.github.com/activities/co ... en-source/

D
by danikf
Fri Feb 05, 2016 11:11 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

api-ssl support added (github sources).
https://github.com/danikf/tik4net/wiki/SSL-connection
    using (var conection = ConnectionFactory.OpenConnection(TikConnectionType.ApiSsl, host, user, pass))
    {
      // do something usefull
    }
Looking for betatesters !!!

Enjoy,
D
by danikf
Tue Feb 02, 2016 8:10 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Published new version 1.6.0.0 Whats new: * Added support for formated commands * Added Bridge entities (InterfaceBridge, BridgeNat, BridgeFilter) var nat = new InterfaceBridge.BridgeNat() { Chain = InterfaceBridge.BridgeFirewallBase.ChainType.Forward, Action = InterfaceBridge.BridgeNat.ActionType.Ac...
by danikf
Tue Feb 02, 2016 12:04 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

I have committed Alpha version of Bridge entities to GitHub. I'll appreciate your feed-back. var filter = new InterfaceBridge.BridgeFilter() { Chain = InterfaceBridge.BridgeFilter.ChainType.Forward, Action = InterfaceBridge.BridgeFilter.ActionType.Accept, }; Connection.Save(filter); You can still cr...
by danikf
Thu Jan 28, 2016 10:27 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, I have just updated github sources (update will be part of the next release). With updated version you can simply format command text with filter. Untyped version: var cmd = Connection.CreateCommandAndParameters(@"/interface/print ?type=ether ?type=wlan ?#|"); var list = cmd.ExecuteList(); Stron...
by danikf
Fri Jan 01, 2016 8:21 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Released new version 1.5.0.0.

Whats new:
* TikListMerge ferature - see https://github.com/danikf/tik4net/wiki/TikListMerge
* FirewallConnection.ConnectionTracking entity
* Bug fixies

Enjoy,
D
by danikf
Tue Dec 22, 2015 6:55 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Probably there is no active connection from ip 192.168.3.69 to router (or connection tracking is switched off in mikrotik configuration). Try to load all connections without filter: var command = connection.CreateCommandAndParameters("/ip/firewall/connection/print"); var result = command.ExecuteList...
by danikf
Mon Dec 21, 2015 8:50 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hi, there are many ways how to handle this task: using (ITikConnection connection = ConnectionFactory.CreateConnection(TikConnectionType.Api)) { connection.Open(HOST, USER, PASS); 1) Via direct API call (low-level access): string[] command = new string[] { "/ip/firewall/connection/print", "?src-addr...
by danikf
Sun Nov 08, 2015 6:41 pm
Forum: Scripting
Topic: API Links
Replies: 128
Views: 89780

Re: API Links

Hi,

why not use C# (.NET) dlls in VB (also .NET) code?

D
by danikf
Wed Oct 28, 2015 12:54 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Version 1.4.0.0 released:

* Fixed word length calculation (credits: h44z)
* Hotspot user management fixed
* Async API refactoring (cleaning)

Enjoy,
D
by danikf
Fri Oct 16, 2015 11:32 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Published version 1.3.0.0.

New highlevel entities:
* Hotspot users
* Interface (eth/wlan)
var list = Connection.LoadAll<InterfaceWireless.WirelessRegistrationTable>();
Enjoy,
D
by danikf
Thu Oct 01, 2015 12:15 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Released new version 1.2.2.0 with hotspot user entities (beta).
using tik4net.Objects;
using tik4net.Objects.Ip.Hotspot;
var user = new HotspotUser()
{
    Name = "TEST",
    LimitUptime = "1:00:00",
    Password = "secretpass"
};
_connection.Save(user);
Enjoy,
D
by danikf
Wed Sep 30, 2015 10:20 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Hello, I am going to import hotspot objects very soon (one week?), but I need betatesters, becase I am not using this feature. If you wold participate in betatesting, your help will be appreciated. Or you can create your own classes (see TikEntity and TikProperty attributes) and use it with O/R mapp...
by danikf
Tue Sep 22, 2015 11:45 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Example of highlevel API usage (dev branch on GitHub):
// renew IP on dhcp-client interface
connection.LoadAll<IpDhcpClient>().First().Release(connection);
by danikf
Sun Sep 20, 2015 3:29 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Released new version 1.2.0.0 with enum support (as field values) and with C# entity code generators.

Enjoy,
D
by danikf
Wed Sep 16, 2015 8:31 pm
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Released new version with updates. Added versions for .NET 3.5, .NET 4.0 and .NET 4.5.2
by danikf
Fri Aug 28, 2015 1:04 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

Re: C# API - tik4net on GitHub

Chupaka - thank you for inspiration how to handle paralel queries.

D
BTW: both your and mine code are not realy thread-safe ;-)
by danikf
Fri Aug 28, 2015 1:01 am
Forum: Scripting
Topic: API Links
Replies: 128
Views: 89780

Re: API Links

Hi all,

please redirect link for tik4net (.NET (C#) - external by danikf) to new location (both in this thread and in wiki links).

New location of tik4net project: https://github.com/danikf/tik4net
And newly created thread here: http://forum.mikrotik.com/viewtopic.php?f=9&t=99954

Thanks,
D
by danikf
Fri Aug 28, 2015 12:54 am
Forum: Scripting
Topic: C# API - tik4net on GitHub
Replies: 160
Views: 39452

C# API - tik4net on GitHub

I have just published my API client for .NET. It implements execution of parallel queries which are easily handled due to ADO.NET-like interface + O/R mapper like extensions to provide strong-typed experience (it supports both single entity and list of entities). Please leave message in this thread ...
by danikf
Mon Mar 14, 2011 9:05 am
Forum: Scripting
Topic: API Links
Replies: 128
Views: 89780

Re: API Links

Hi,
please add this link to wiki:
.NET (C#) high-level api solution: http://code.google.com/p/mikrotik4net/

thx, danik