-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (36 loc) · 1.53 KB
/
index.js
File metadata and controls
43 lines (36 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"use strict";
//
// This wrapper is to provide some continuity in the modifications of the APIs over time
//
var searchAirs = require("./src/air_search");
var Zeptrion = require("./src");
//var lightState = require("./zeptrion-api/lightstate");
//var scheduledEvent = require("./zeptrion-api/scheduledEvent");
//var scene = require("./zeptrion-api/scene");
//var timer = require("./zeptrion-api/timer");
var ApiError = require("./src/errors").ApiError;
module.exports = {
ZeptrionApi: Zeptrion,
AirAPI: Zeptrion,
air: Zeptrion,
api: Zeptrion,
//lightState: lightState,
//scheduledEvent: scheduledEvent,
//scene: scene,
//timer: timer,
/**
* Returns a new AirLocator that is looking up for ZeptreonAir Devices (Airs) with help of mDNS on the Network and start scanning
* The AirLocator sents the following events:
* @event start if the Scanner starts scanning
* @event serviceUp if a new Air has registered on the mDNS Service and sent the Air with the event
* @event serviceDown if the Air has deregistered on the mDNS Service and sent the Air with the event
* @event stop if the Scanner stops scanning
* @event error if the Scanner stops scanning and sent the error with the event
* The AirLocator has the following Methods:
* @method startScanning() starts scanning
* @method getAllFoundAirs() return all already found airs during scanning
* @method stopScanning() stops scanning
*/
airRunningLocator: searchAirs.startAirLocator,
ApiError: ApiError
};