Goodnight.
I have a question, I am trying to add users through the hotspot what happens is that in this code the winbox does not receive the password, only the created user is displayed, I thought it was the false but the same error still appears.
Thank you.
This is the code
class Program
{
static void Main (string args)
{
MK mikrotik = new MK (“10.10.0.254”);
if (! mikrotik.Login (“itamar”, “12345678”))
{
Console.WriteLine (“The account could not be entered”);
Console.ReadKey ();
mikrotik.Close ();
return;
}
//mikrotik.Send(“/system/identity/getall “);
//mikrotik.Send(”.tag=sss “, true);
mikrotik.Send (”/ ip / hotspot / user / add”);
mikrotik.Send (“= name = user1”, false);
mikrotik.Send (“= password = new2”, false);
mikrotik.Send (“= profile = profile1”, true);
Console.WriteLine (“created user”);
foreach (string h in mikrotik.Read ())
{
Console.WriteLine (h);
}
Console.ReadKey ();
}
}