this is what I have - but it only change me the identity and not the ssid
Code: Select all
Console.WriteLine("Change System Identity - ");
mikrotik.Send("/system/identity/set");
mikrotik.Send("=name=DavidTest21211",true);
// mikrotik.Send("/cancel");// to shut down to connection - exit from api -NOT IN USE
Console.WriteLine("****************************************************************** ");
mikrotik.Send("/interface/wireless/print");
mikrotik.Send("=.proplist=.id", true);
string WlanSSID_Full= mikrotik.Read()[0]; //give me just the answer !re=.id=*D
string Wlan_Short=WlanSSID_Full.Substring(8); // save only *D
Console.WriteLine("this is jsut the ID of the wireless - " + Wlan_Short);
Console.WriteLine("Change Wireless SSID - ");
mikrotik.Send("/interface/wireless/set");
mikrotik.Send("=.id=" + Wlan_Short);
mikrotik.Send("=ssid=dsaasd43hrts", true);
Console.WriteLine("****************************************************************** ")
** update
I have notich that after i run the "set" command , if i run
Code: Select all
foreach (string h in mikrotik.Read())
so i need to clear the response of the router , right?
Thanks ,