UNPKG

@kvaser/canking-api

Version:

CanKing API to communicate with the CanKing service using Node.js.

30 lines (18 loc) 485 B
[**Kvaser CanKing GUI Extensions SDK v7.5.1**](../../README.md) *** [Kvaser CanKing GUI Extensions SDK](../../modules.md) / [hooks](../README.md) / useIsOnline # Function: useIsOnline() > **useIsOnline**(): `boolean` Hook keeping track of if the measurement is online. ## Returns `boolean` A flag that indicates if a measurement is started. ## Example ``` const isOnline = useIsOnline(); if (isOnline) { // Measurement is online } else { // Measurement is offline } ```