From 93dcf3af99a8ff551be45702f9a6f34bb0f83f12 Mon Sep 17 00:00:00 2001 From: Patrick Michalina Date: Tue, 29 Jan 2019 12:24:23 -0600 Subject: [PATCH] fix: remove example usages --- src/node.ts | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/node.ts b/src/node.ts index 965bb3d..f684a46 100644 --- a/src/node.ts +++ b/src/node.ts @@ -1,6 +1,5 @@ import { IDeviceInitConfig, createManagedDevice } from '.' import { DEFAULT_NODE_ENV } from './config/node' -import { CapabilityCategory, UserLevel } from './api/types' export * from './browser' export * from './index' @@ -9,29 +8,3 @@ export const createManagedDeviceInNode = (config: IDeviceInitConfig) => createManagedDevice(config) .run(DEFAULT_NODE_ENV) - - - -const device = createManagedDeviceInNode({ - deviceUrl: 'http://192.168.1.172/onvif/device_service', - password: 'admin', - username: 'admin' -}) - -device.api.Device.GetNetworkProtocols() - .toPromise() - .then(res => { - res.match({ - ok: console.log, - fail: r => console.log(r.status, r.statusMessage) - }) - }) - -device.api.Device.GetUsers() - .toPromise() - .then(res => { - res.match({ - ok: console.log, - fail: r => console.log(r.status, r.statusMessage) - }) - }) \ No newline at end of file