Digital Twin Frontend Docs
GitHubGitHub (opens in a new tab)
  • Introduction
  • Deployment
  • File Structure
    • File Structure
        • useWebSocket
        • useSubscribeAll
        • useSubscribeById
        • getDeviceHistory
        • getLatestDevices
        • useSensorManager
        • Transform
        • Index
    • Introduction
    • UI
      • Introduction
      • Line
      • Bar
      • Line Comparison Chart
    • Preliminary
    • Medium Example
    • Advanced Example
  • Sensor Server
    • Introduction
    • Jobs
    • JSON Schema
  • Documentation
  • User Guide
  • Introduction
  • Deployment
  • File Structure
    • File Structure
        • useWebSocket
        • useSubscribeAll
        • useSubscribeById
        • getDeviceHistory
        • getLatestDevices
          • Returns
        • useSensorManager
        • Transform
        • Index
    • Introduction
    • UI
      • Introduction
      • Line
      • Bar
      • Line Comparison Chart
    • Preliminary
    • Medium Example
    • Advanced Example
  • Sensor Server
    • Introduction
    • Jobs
    • JSON Schema
  • Documentation
  • User Guide

On This Page

  • Returns
Web
API
Sensor
getLatestDevices

getLatestDevices

Makes a request to the server to get the latest data from all devices

Returns

The hook returns the following:

  • data: the history of the device
  • loading: whether the request is loading
  • error: any error that occurred
getDeviceHistoryuseSensorManager

Digital Twin Frontend - Lakee Sivaraya