Device Object
The device object is no longer available in the SDK. You can use the getDeviceProperties method to get the device information.
Device Object Properties
| Property | Description | Type | 
|---|---|---|
| id | TelemetryTV Device ID | string | 
| serialNumber | Serial Number | string | 
| model | Model Type | string | 
| name | Name | string | 
| location | Location | string | 
| geo | Geographic Coordinates (Requires app and device support) | object | 
| os | Operating System | string | 
| osVersion | Version of the OS | string | 
| tags | TelemetryTV Device Tags | array | 
| language | Language locale settings (derived from the device and account language settings where device if set will override the account) | string | 
| deviceLanguage | The localization language set for the device | string | 
| accountLanguage | The localization language set for the account | string | 
| browserName | Browser rendering engine | string | 
| browserVersion | Browser version | string | 
| uptime | Uptime of the device in seconds | number | 
| contentPlayback | Content playback mode of the device (playlists or webapp) | string | 
| environmentVars | Device environment variables | array | 
| rotation | Rotation of the device's screen | number | 
| orientation | Orientation of the device | string | 
| serialPorts | The serial ports of the device (if any) | array | 
Code Samples
import { getDeviceProperties } from '@telemetrytv/sdk'
getDeviceProperties().then((device) => {
  console.log('My device name is:', device.name)
})
Updated 8 months ago
What’s Next
