@hello.nrfcloud.com/proto-map
Version: 
Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application
14 lines • 755 B
text/typescript
import type { LwM2MObjectInstance } from "../LwM2MObjectInstance.js";
import { NumberResource, StringResource, TimeResource, validateInstance } from "../validation.js";
import type { DECTNR_ConnectionProfile_14503 } from "../objects.js";
import { LwM2MObjectID } from "../LwM2MObjectID.js";
/**
 * Validate DECT NR+ Connection Profile (14503)
 *
 * Ensures the given object is an LwM2M object according to the schema 14503.xml.
 */
export const validate14503 = (o: unknown): {
    error: Error;
} | {
    object: LwM2MObjectInstance<DECTNR_ConnectionProfile_14503>;
} => validateInstance<DECTNR_ConnectionProfile_14503>(LwM2MObjectID.DECTNR_ConnectionProfile_14503, "1.0", { 0: NumberResource, 1: NumberResource, 2: StringResource, 99: TimeResource })(o);