Current speed via API

Hello again.

What’s the proper way to obtain the current speed for a hotpost active connection?

I just see the total bytes uploaded or downloaded, but no the current. Do I have to calculate it? (current_total - anterior_total) / (current_time - anterior_time)…

listening to the active connections, does not seem to notify on downloaded/uploaded bytes changes. Do I have to recall /ip/hotspot/active/getall every time?

Thanks again!

Silderán.

One way is to use “/tool torch” over the hotspot subnet. And keep listening on “/ip hotspot active” to verify that the user is logged in (as otherwise, you’d also be monitoring users that are not logged in).

I’m not familiar with any hotspot specific way.

Thank you boen, it works:

I wonder if this is the correct torch configuration… I’m not soo good using ROS.
The next step will be parsing received data.