mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-29 17:32:20 +00:00
[WIFI-12335] Display gateway tx/rx values
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
@@ -165,7 +165,10 @@ export type DevicesStats = {
|
||||
averageConnectionTime: number;
|
||||
connectedDevices: number;
|
||||
connectingDevices: number;
|
||||
tx: number;
|
||||
rx: number;
|
||||
};
|
||||
|
||||
const getInitialStats = async () =>
|
||||
axiosGw.get(`devices?connectionStatistics=true`).then(({ data }: { data: DevicesStats }) => data);
|
||||
export const useGetDevicesStats = ({ onError }: { onError?: (e: AxiosError) => void }) => {
|
||||
|
||||
Reference in New Issue
Block a user