在路由器mikrotik和api php routeros之间进行通信时出现问题

I try to test the project of ** Denis Basta **: https://github.com/BenMenking/routeros-api/blob/master/routeros_api.class.php to generate the pin codes to connect to a hotspot, without using User Manager, but I get this message "message = input does not match any value of profile" when running the hotspot_gen.php page.

file link: https://drive.google.com/open?id=1slbNlitbGIMXzmEyot1adknlMuHGmMwv here is a portion of the contents of this page:

<?php
    // Create/open the DB file
    if(!$db = new SQLite3($config['db_path'])) die("Unable to open the DB file!!
");

    // Delete the previous table if exists
    $db->exec('DROP TABLE IF EXISTS users;');

    // Create the table with the fields
    $db->exec('CREATE TABLE users (id INTEGER,pin INTEGER,used BOOL);');

    // Iterate the number of desired Hotspot users
    for($num = 0; $num < $config['hotspot_users']; $num++){

        // Generate a randon PIN between consistent numbers
        $pin = mt_rand(124871,932569);

        // Insert the PIN into the DB
        $db->exec("INSERT INTO users (id,pin,used) VALUES ($num,$pin,0);");

        // Add the new Hotspot user into the RouterBoard
        $ros->comm('/ip/hotspot/user/add',array('name'=>$pin,'profile'=>$config['hotspot_profile'],'server'=>$config['hotspot_server'],'limit-uptime'=>$config['hotspot_limit_uptime']));
    }
    $db->close();
    $ros->disconnect();
}
?>

and it seems to me that the error is at the level of:

$ros->comm('/ip/hotspot/user/add',array('name'=>$pin,'profile'=>$config['hotspot_profile'],'server'=>$config['hotspot_server'],'limit-uptime'=>$config['hotspot_limit_uptime']));

I would appreciate any help. cordially.