Community discussions

MikroTik App
 
LanaerTheetr
just joined
Topic Author
Posts: 3
Joined: Fri Mar 03, 2023 2:23 pm

How to handle Mikrotik API disconnects?

Mon Apr 03, 2023 12:49 pm

I am currently working with the Mikrotik PHP API and I'm unsure of how to control whether or not the "limit-uptime" is run if the user is disconnected.
Here is the code that I am currently working with:

$API->write("/ip/hotspot/user/add", false);
$API->write("=name=".$usuario, false);
$API->write("=limit-uptime=".$segundos, false);
$API->write("=password=".$password, true);
If you have any suggestions or solutions for how to address this issue, I would greatly appreciate it.

Who is online

Users browsing this forum: No registered users and 25 guests