and I have done a few tries using the examples provided,
http://wiki.mikrotik.com/wiki/API_PHP_class
to change the ssid from my wireless interface that normaly i would use on the terminal
interface wireless set ssid="myMikro" numbers=0
, after this i wan't to enable or disable the wireless interface, but without luck also.
Code: Select all
<?php
require('routeros_api.class.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('192.168.1.210', 'admin', '')) {
//test 998
$ARRAY = $API->write('/interface/wireless/set/',array('numbers'=>0,'ssid'=>'skjdlksj'));
print_r($ARRAY);
//test 999
$ARRAY = $API->comm('/interface/wireless/set',array("numbers"=>0,"ssid"=>"sksksk2"));
print_r($ARRAY);
}
Many thanks