Code: Select all
$this->router->write('/ip/hotspot/active/login',true);
$this->router->write('=user=user',false);
$this->router->write('=password=password',false);
$this->router->write('=mac-address=DC:0B:34:CA:52:C6 ',false);
$this->router->write('=ip=192.168.88.249',false);
$read = $this->router->read(false);
$array = $this->router->parseresponse($read);
var_dump($array)
Code: Select all
<<< [24] /ip/hotspot/active/login
<<< [12] =user=user
<<< [18] =password=password
<<< [30] =mac-address=DC:0B:34:CA:52:C6
<<< [18] =ip=`192.168.88.249`
>>> [5/5] bytes read.
>>> [5, 53]!trap >>> [11/11] bytes read.
>>> [11, 41]=category=4
>>> [32/32] bytes read.
>>> [32, 8]=message=unknown host IP 0.0.0.0
>>> [5/5] bytes read.
>>> [5, 1]!done array(1) { ["!trap"]=> array(1) { [0]=> array(2) { ["category"]=> string(1) "4" ["message"]=> string(23) "unknown host IP 0.0.0.0" } } }
Disconnected...