getDevices

Export, used to get devices and laptop id, for currently open laptop.

Reference

Type Reference: LaptopDevice

--- Returns nil, if laptop isn't open.
---@return string | nil, table<LaptopDevice> | nil
function getDevices() end

Usage example

client.lua
  exports.fd_laptop:getDevices()