[WIFI-12335] Display gateway tx/rx values

Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
Charles
2023-02-25 10:10:10 +01:00
parent 9583b2bae0
commit 64f3ee797e
11 changed files with 29 additions and 9 deletions

View File

@@ -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 }) => {