UNPKG

@hello.nrfcloud.com/proto-map

Version:

Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application

18 lines (16 loc) 494 B
import { ResourceType } from './LWM2MObjectInfo.js' /** * Only store numeric values, because you cannot create statistics about strings, or boolean */ export const isNumeric = (def: { Type: ResourceType }): boolean => { switch (def.Type) { case ResourceType.Float: case ResourceType.Integer: return true case ResourceType.String: case ResourceType.Opaque: case ResourceType.Boolean: case ResourceType.Time: // Time is numeric, but is stored as timestamp return false } }