Bladeren bron

first submit

949177 5 jaren geleden
commit
47d11ea614
4 gewijzigde bestanden met toevoegingen van 647 en 0 verwijderingen
  1. 1 0
      .gitignore
  2. 57 0
      index.js
  3. 575 0
      package-lock.json
  4. 14 0
      package.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
1
+node_modules

+ 57 - 0
index.js

@@ -0,0 +1,57 @@
1
+var bleno = require('bleno');
2
+var StringDecoder = require('string_decoder').StringDecoder;
3
+
4
+var name = 'wifitest';
5
+var serviceUuids = ['fffffffffffffffffffffffffffffff0']
6
+
7
+
8
+function bytesToString(buffer) {
9
+    return String.fromCharCode.apply(null, new Uint8Array(buffer));
10
+}
11
+
12
+bleno.on('stateChange', function (state) {
13
+    console.log(state);
14
+    bleno.startAdvertising(name, serviceUuids, function (error) {
15
+        if (error) {
16
+            console.log(error);
17
+        }
18
+        console.log('start');
19
+
20
+        var Descriptor = bleno.Descriptor;
21
+
22
+        var descriptor = new Descriptor({
23
+            uuid: '2901',
24
+            value: 'test' // static value, must be of type Buffer or string if set
25
+        });
26
+        var Characteristic = bleno.Characteristic;
27
+
28
+        var characteristic = new Characteristic({
29
+            uuid: 'fffffffffffffffffffffffffffffff1', // or 'fff1' for 16-bit
30
+            properties: ['read', 'write', 'writeWithoutResponse'], // can be a combination of 'read', 'write', 'writeWithoutResponse', 'notify', 'indicate'
31
+            value: null, // optional static value, must be of type Buffer - for read only characteristics
32
+
33
+            descriptors: [
34
+                // see Descriptor for data type
35
+                descriptor
36
+            ],
37
+            onWriteRequest: function (data, offset, withoutResponse) {
38
+                console.log(bytesToString(data));
39
+            }
40
+        });
41
+        var PrimaryService = bleno.PrimaryService;
42
+
43
+        var primaryService = new PrimaryService({
44
+            uuid: 'fffffffffffffffffffffffffffffff0', // or 'fff0' for 16-bit
45
+            characteristics: [
46
+                // see Characteristic for data type
47
+                characteristic
48
+            ]
49
+        });
50
+        bleno.setServices(primaryService, function (error) {
51
+            if (error) {
52
+                console.log(error);
53
+            }
54
+            console.log('success');
55
+        });
56
+    });
57
+});

+ 575 - 0
package-lock.json

@@ -0,0 +1,575 @@
1
+{
2
+  "name": "wifi-ble-server",
3
+  "version": "1.0.0",
4
+  "lockfileVersion": 1,
5
+  "requires": true,
6
+  "dependencies": {
7
+    "abbrev": {
8
+      "version": "1.1.1",
9
+      "resolved": "http://registry.npm.taobao.org/abbrev/download/abbrev-1.1.1.tgz",
10
+      "integrity": "sha1-+PLIh60Qv2f2NPAFtph/7TF5qsg=",
11
+      "optional": true
12
+    },
13
+    "ansi-regex": {
14
+      "version": "2.1.1",
15
+      "resolved": "http://registry.npm.taobao.org/ansi-regex/download/ansi-regex-2.1.1.tgz",
16
+      "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
17
+    },
18
+    "aproba": {
19
+      "version": "1.2.0",
20
+      "resolved": "http://registry.npm.taobao.org/aproba/download/aproba-1.2.0.tgz",
21
+      "integrity": "sha1-aALmJk79GMeQobDVF/DyYnvyyUo=",
22
+      "optional": true
23
+    },
24
+    "are-we-there-yet": {
25
+      "version": "1.1.5",
26
+      "resolved": "http://registry.npm.taobao.org/are-we-there-yet/download/are-we-there-yet-1.1.5.tgz",
27
+      "integrity": "sha1-SzXClE8GKov82mZBB2A1D+nd/CE=",
28
+      "optional": true,
29
+      "requires": {
30
+        "delegates": "1.0.0",
31
+        "readable-stream": "2.3.6"
32
+      }
33
+    },
34
+    "balanced-match": {
35
+      "version": "1.0.0",
36
+      "resolved": "http://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz",
37
+      "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
38
+    },
39
+    "bleno": {
40
+      "version": "0.5.0",
41
+      "resolved": "http://registry.npm.taobao.org/bleno/download/bleno-0.5.0.tgz",
42
+      "integrity": "sha1-gLZM4yrZAhJnkBZmEYOCM9gpI5Y=",
43
+      "requires": {
44
+        "bluetooth-hci-socket": "0.5.1",
45
+        "bplist-parser": "0.0.6",
46
+        "debug": "2.6.9",
47
+        "xpc-connection": "0.1.4"
48
+      }
49
+    },
50
+    "bluetooth-hci-socket": {
51
+      "version": "0.5.1",
52
+      "resolved": "http://registry.npm.taobao.org/bluetooth-hci-socket/download/bluetooth-hci-socket-0.5.1.tgz",
53
+      "integrity": "sha1-774hUk/Bz10/rl1RNl1WHUq77Qs=",
54
+      "optional": true,
55
+      "requires": {
56
+        "debug": "2.6.9",
57
+        "nan": "2.12.1",
58
+        "usb": "1.5.0"
59
+      }
60
+    },
61
+    "bplist-parser": {
62
+      "version": "0.0.6",
63
+      "resolved": "http://registry.npm.taobao.org/bplist-parser/download/bplist-parser-0.0.6.tgz",
64
+      "integrity": "sha1-ONo0cYF9+dRKs4kuJ3B7u9daEbk=",
65
+      "optional": true
66
+    },
67
+    "brace-expansion": {
68
+      "version": "1.1.11",
69
+      "resolved": "http://registry.npm.taobao.org/brace-expansion/download/brace-expansion-1.1.11.tgz",
70
+      "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
71
+      "requires": {
72
+        "balanced-match": "1.0.0",
73
+        "concat-map": "0.0.1"
74
+      }
75
+    },
76
+    "chownr": {
77
+      "version": "1.1.1",
78
+      "resolved": "http://registry.npm.taobao.org/chownr/download/chownr-1.1.1.tgz",
79
+      "integrity": "sha1-VHJri4//TfBTxCGH6AH7RBLfFJQ=",
80
+      "optional": true
81
+    },
82
+    "code-point-at": {
83
+      "version": "1.1.0",
84
+      "resolved": "http://registry.npm.taobao.org/code-point-at/download/code-point-at-1.1.0.tgz",
85
+      "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
86
+    },
87
+    "concat-map": {
88
+      "version": "0.0.1",
89
+      "resolved": "http://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz",
90
+      "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
91
+    },
92
+    "console-control-strings": {
93
+      "version": "1.1.0",
94
+      "resolved": "http://registry.npm.taobao.org/console-control-strings/download/console-control-strings-1.1.0.tgz",
95
+      "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
96
+    },
97
+    "core-util-is": {
98
+      "version": "1.0.2",
99
+      "resolved": "http://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz",
100
+      "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
101
+      "optional": true
102
+    },
103
+    "debug": {
104
+      "version": "2.6.9",
105
+      "resolved": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
106
+      "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
107
+      "requires": {
108
+        "ms": "2.0.0"
109
+      }
110
+    },
111
+    "deep-extend": {
112
+      "version": "0.6.0",
113
+      "resolved": "http://registry.npm.taobao.org/deep-extend/download/deep-extend-0.6.0.tgz",
114
+      "integrity": "sha1-xPp8lUBKF6nD6Mp+FTcxK3NjMKw=",
115
+      "optional": true
116
+    },
117
+    "delegates": {
118
+      "version": "1.0.0",
119
+      "resolved": "http://registry.npm.taobao.org/delegates/download/delegates-1.0.0.tgz",
120
+      "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
121
+      "optional": true
122
+    },
123
+    "detect-libc": {
124
+      "version": "1.0.3",
125
+      "resolved": "http://registry.npm.taobao.org/detect-libc/download/detect-libc-1.0.3.tgz",
126
+      "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
127
+      "optional": true
128
+    },
129
+    "fs-minipass": {
130
+      "version": "1.2.5",
131
+      "resolved": "http://registry.npm.taobao.org/fs-minipass/download/fs-minipass-1.2.5.tgz",
132
+      "integrity": "sha1-BsJ3IYRU7CiN93raVKA7hwKqy50=",
133
+      "optional": true,
134
+      "requires": {
135
+        "minipass": "2.3.5"
136
+      }
137
+    },
138
+    "fs.realpath": {
139
+      "version": "1.0.0",
140
+      "resolved": "http://registry.npm.taobao.org/fs.realpath/download/fs.realpath-1.0.0.tgz",
141
+      "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
142
+      "optional": true
143
+    },
144
+    "gauge": {
145
+      "version": "2.7.4",
146
+      "resolved": "http://registry.npm.taobao.org/gauge/download/gauge-2.7.4.tgz",
147
+      "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
148
+      "optional": true,
149
+      "requires": {
150
+        "aproba": "1.2.0",
151
+        "console-control-strings": "1.1.0",
152
+        "has-unicode": "2.0.1",
153
+        "object-assign": "4.1.1",
154
+        "signal-exit": "3.0.2",
155
+        "string-width": "1.0.2",
156
+        "strip-ansi": "3.0.1",
157
+        "wide-align": "1.1.3"
158
+      }
159
+    },
160
+    "glob": {
161
+      "version": "7.1.3",
162
+      "resolved": "http://registry.npm.taobao.org/glob/download/glob-7.1.3.tgz",
163
+      "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=",
164
+      "optional": true,
165
+      "requires": {
166
+        "fs.realpath": "1.0.0",
167
+        "inflight": "1.0.6",
168
+        "inherits": "2.0.3",
169
+        "minimatch": "3.0.4",
170
+        "once": "1.4.0",
171
+        "path-is-absolute": "1.0.1"
172
+      }
173
+    },
174
+    "has-unicode": {
175
+      "version": "2.0.1",
176
+      "resolved": "http://registry.npm.taobao.org/has-unicode/download/has-unicode-2.0.1.tgz",
177
+      "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
178
+      "optional": true
179
+    },
180
+    "iconv-lite": {
181
+      "version": "0.4.24",
182
+      "resolved": "http://registry.npm.taobao.org/iconv-lite/download/iconv-lite-0.4.24.tgz",
183
+      "integrity": "sha1-ICK0sl+93CHS9SSXSkdKr+czkIs=",
184
+      "optional": true,
185
+      "requires": {
186
+        "safer-buffer": "2.1.2"
187
+      }
188
+    },
189
+    "ignore-walk": {
190
+      "version": "3.0.1",
191
+      "resolved": "http://registry.npm.taobao.org/ignore-walk/download/ignore-walk-3.0.1.tgz",
192
+      "integrity": "sha1-qD5i59JyrA47VRqqgoMaGbafgvg=",
193
+      "optional": true,
194
+      "requires": {
195
+        "minimatch": "3.0.4"
196
+      }
197
+    },
198
+    "inflight": {
199
+      "version": "1.0.6",
200
+      "resolved": "http://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz",
201
+      "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
202
+      "optional": true,
203
+      "requires": {
204
+        "once": "1.4.0",
205
+        "wrappy": "1.0.2"
206
+      }
207
+    },
208
+    "inherits": {
209
+      "version": "2.0.3",
210
+      "resolved": "http://registry.npm.taobao.org/inherits/download/inherits-2.0.3.tgz",
211
+      "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
212
+    },
213
+    "ini": {
214
+      "version": "1.3.5",
215
+      "resolved": "http://registry.npm.taobao.org/ini/download/ini-1.3.5.tgz",
216
+      "integrity": "sha1-7uJfVtscnsYIXgwid4CD9Zar+Sc=",
217
+      "optional": true
218
+    },
219
+    "is-fullwidth-code-point": {
220
+      "version": "1.0.0",
221
+      "resolved": "http://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-1.0.0.tgz",
222
+      "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
223
+      "requires": {
224
+        "number-is-nan": "1.0.1"
225
+      }
226
+    },
227
+    "isarray": {
228
+      "version": "1.0.0",
229
+      "resolved": "http://registry.npm.taobao.org/isarray/download/isarray-1.0.0.tgz",
230
+      "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
231
+      "optional": true
232
+    },
233
+    "minimatch": {
234
+      "version": "3.0.4",
235
+      "resolved": "http://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz",
236
+      "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
237
+      "requires": {
238
+        "brace-expansion": "1.1.11"
239
+      }
240
+    },
241
+    "minimist": {
242
+      "version": "0.0.8",
243
+      "resolved": "http://registry.npm.taobao.org/minimist/download/minimist-0.0.8.tgz",
244
+      "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
245
+    },
246
+    "minipass": {
247
+      "version": "2.3.5",
248
+      "resolved": "http://registry.npm.taobao.org/minipass/download/minipass-2.3.5.tgz",
249
+      "integrity": "sha1-ys6+SSAiSX9law8PUeJoKp7S2Eg=",
250
+      "requires": {
251
+        "safe-buffer": "5.1.2",
252
+        "yallist": "3.0.3"
253
+      }
254
+    },
255
+    "minizlib": {
256
+      "version": "1.2.1",
257
+      "resolved": "http://registry.npm.taobao.org/minizlib/download/minizlib-1.2.1.tgz",
258
+      "integrity": "sha1-3SfqYTYkPHyIBoToZyuzpF/ZthQ=",
259
+      "optional": true,
260
+      "requires": {
261
+        "minipass": "2.3.5"
262
+      }
263
+    },
264
+    "mkdirp": {
265
+      "version": "0.5.1",
266
+      "resolved": "http://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.1.tgz",
267
+      "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
268
+      "requires": {
269
+        "minimist": "0.0.8"
270
+      }
271
+    },
272
+    "ms": {
273
+      "version": "2.0.0",
274
+      "resolved": "http://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz",
275
+      "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
276
+    },
277
+    "nan": {
278
+      "version": "2.12.1",
279
+      "resolved": "http://registry.npm.taobao.org/nan/download/nan-2.12.1.tgz",
280
+      "integrity": "sha1-exqhk+mqhgV+PHu9CsRI53CSVVI=",
281
+      "optional": true
282
+    },
283
+    "needle": {
284
+      "version": "2.2.4",
285
+      "resolved": "http://registry.npm.taobao.org/needle/download/needle-2.2.4.tgz",
286
+      "integrity": "sha1-UZMb/4JTOxkot9HWngHxsA/9Kk4=",
287
+      "optional": true,
288
+      "requires": {
289
+        "debug": "2.6.9",
290
+        "iconv-lite": "0.4.24",
291
+        "sax": "1.2.4"
292
+      }
293
+    },
294
+    "node-pre-gyp": {
295
+      "version": "0.11.0",
296
+      "resolved": "http://registry.npm.taobao.org/node-pre-gyp/download/node-pre-gyp-0.11.0.tgz",
297
+      "integrity": "sha1-2x8zIVJy9pLNOPAyOOPptHxd0FQ=",
298
+      "optional": true,
299
+      "requires": {
300
+        "detect-libc": "1.0.3",
301
+        "mkdirp": "0.5.1",
302
+        "needle": "2.2.4",
303
+        "nopt": "4.0.1",
304
+        "npm-packlist": "1.4.1",
305
+        "npmlog": "4.1.2",
306
+        "rc": "1.2.8",
307
+        "rimraf": "2.6.3",
308
+        "semver": "5.6.0",
309
+        "tar": "4.4.8"
310
+      }
311
+    },
312
+    "nopt": {
313
+      "version": "4.0.1",
314
+      "resolved": "http://registry.npm.taobao.org/nopt/download/nopt-4.0.1.tgz",
315
+      "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=",
316
+      "optional": true,
317
+      "requires": {
318
+        "abbrev": "1.1.1",
319
+        "osenv": "0.1.5"
320
+      }
321
+    },
322
+    "npm-bundled": {
323
+      "version": "1.0.6",
324
+      "resolved": "http://registry.npm.taobao.org/npm-bundled/download/npm-bundled-1.0.6.tgz",
325
+      "integrity": "sha1-57qarc75YrthJI+RchzZMrP+a90=",
326
+      "optional": true
327
+    },
328
+    "npm-packlist": {
329
+      "version": "1.4.1",
330
+      "resolved": "http://registry.npm.taobao.org/npm-packlist/download/npm-packlist-1.4.1.tgz",
331
+      "integrity": "sha1-GQZM35iNqA6jzuRVM4edkBkrv7w=",
332
+      "optional": true,
333
+      "requires": {
334
+        "ignore-walk": "3.0.1",
335
+        "npm-bundled": "1.0.6"
336
+      }
337
+    },
338
+    "npmlog": {
339
+      "version": "4.1.2",
340
+      "resolved": "http://registry.npm.taobao.org/npmlog/download/npmlog-4.1.2.tgz",
341
+      "integrity": "sha1-CKfyqL9zRgR3mp76StXMcXq7lUs=",
342
+      "optional": true,
343
+      "requires": {
344
+        "are-we-there-yet": "1.1.5",
345
+        "console-control-strings": "1.1.0",
346
+        "gauge": "2.7.4",
347
+        "set-blocking": "2.0.0"
348
+      }
349
+    },
350
+    "number-is-nan": {
351
+      "version": "1.0.1",
352
+      "resolved": "http://registry.npm.taobao.org/number-is-nan/download/number-is-nan-1.0.1.tgz",
353
+      "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
354
+    },
355
+    "object-assign": {
356
+      "version": "4.1.1",
357
+      "resolved": "http://registry.npm.taobao.org/object-assign/download/object-assign-4.1.1.tgz",
358
+      "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
359
+      "optional": true
360
+    },
361
+    "once": {
362
+      "version": "1.4.0",
363
+      "resolved": "http://registry.npm.taobao.org/once/download/once-1.4.0.tgz",
364
+      "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
365
+      "requires": {
366
+        "wrappy": "1.0.2"
367
+      }
368
+    },
369
+    "os-homedir": {
370
+      "version": "1.0.2",
371
+      "resolved": "http://registry.npm.taobao.org/os-homedir/download/os-homedir-1.0.2.tgz",
372
+      "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
373
+      "optional": true
374
+    },
375
+    "os-tmpdir": {
376
+      "version": "1.0.2",
377
+      "resolved": "http://registry.npm.taobao.org/os-tmpdir/download/os-tmpdir-1.0.2.tgz",
378
+      "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
379
+      "optional": true
380
+    },
381
+    "osenv": {
382
+      "version": "0.1.5",
383
+      "resolved": "http://registry.npm.taobao.org/osenv/download/osenv-0.1.5.tgz",
384
+      "integrity": "sha1-hc36+uso6Gd/QW4odZK18/SepBA=",
385
+      "optional": true,
386
+      "requires": {
387
+        "os-homedir": "1.0.2",
388
+        "os-tmpdir": "1.0.2"
389
+      }
390
+    },
391
+    "path-is-absolute": {
392
+      "version": "1.0.1",
393
+      "resolved": "http://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz",
394
+      "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
395
+      "optional": true
396
+    },
397
+    "process-nextick-args": {
398
+      "version": "2.0.0",
399
+      "resolved": "http://registry.npm.taobao.org/process-nextick-args/download/process-nextick-args-2.0.0.tgz",
400
+      "integrity": "sha1-o31zL0JxtKsa0HDTVQjoKQeI/6o=",
401
+      "optional": true
402
+    },
403
+    "rc": {
404
+      "version": "1.2.8",
405
+      "resolved": "http://registry.npm.taobao.org/rc/download/rc-1.2.8.tgz",
406
+      "integrity": "sha1-zZJL9SAKB1uDwYjNa54hG3/A0+0=",
407
+      "optional": true,
408
+      "requires": {
409
+        "deep-extend": "0.6.0",
410
+        "ini": "1.3.5",
411
+        "minimist": "1.2.0",
412
+        "strip-json-comments": "2.0.1"
413
+      },
414
+      "dependencies": {
415
+        "minimist": {
416
+          "version": "1.2.0",
417
+          "resolved": "http://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz",
418
+          "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
419
+          "optional": true
420
+        }
421
+      }
422
+    },
423
+    "readable-stream": {
424
+      "version": "2.3.6",
425
+      "resolved": "http://registry.npm.taobao.org/readable-stream/download/readable-stream-2.3.6.tgz",
426
+      "integrity": "sha1-sRwn2IuP8fvgcGQ8+UsMea4bCq8=",
427
+      "optional": true,
428
+      "requires": {
429
+        "core-util-is": "1.0.2",
430
+        "inherits": "2.0.3",
431
+        "isarray": "1.0.0",
432
+        "process-nextick-args": "2.0.0",
433
+        "safe-buffer": "5.1.2",
434
+        "string_decoder": "1.1.1",
435
+        "util-deprecate": "1.0.2"
436
+      }
437
+    },
438
+    "rimraf": {
439
+      "version": "2.6.3",
440
+      "resolved": "http://registry.npm.taobao.org/rimraf/download/rimraf-2.6.3.tgz",
441
+      "integrity": "sha1-stEE/g2Psnz54KHNqCYt04M8bKs=",
442
+      "optional": true,
443
+      "requires": {
444
+        "glob": "7.1.3"
445
+      }
446
+    },
447
+    "safe-buffer": {
448
+      "version": "5.1.2",
449
+      "resolved": "http://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz",
450
+      "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
451
+    },
452
+    "safer-buffer": {
453
+      "version": "2.1.2",
454
+      "resolved": "http://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz",
455
+      "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=",
456
+      "optional": true
457
+    },
458
+    "sax": {
459
+      "version": "1.2.4",
460
+      "resolved": "http://registry.npm.taobao.org/sax/download/sax-1.2.4.tgz",
461
+      "integrity": "sha1-KBYjTiN4vdxOU1T6tcqold9xANk=",
462
+      "optional": true
463
+    },
464
+    "semver": {
465
+      "version": "5.6.0",
466
+      "resolved": "http://registry.npm.taobao.org/semver/download/semver-5.6.0.tgz",
467
+      "integrity": "sha1-fnQlb7qknHWqfHogXMInmcrIAAQ=",
468
+      "optional": true
469
+    },
470
+    "set-blocking": {
471
+      "version": "2.0.0",
472
+      "resolved": "http://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz",
473
+      "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
474
+      "optional": true
475
+    },
476
+    "signal-exit": {
477
+      "version": "3.0.2",
478
+      "resolved": "http://registry.npm.taobao.org/signal-exit/download/signal-exit-3.0.2.tgz",
479
+      "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
480
+      "optional": true
481
+    },
482
+    "string-width": {
483
+      "version": "1.0.2",
484
+      "resolved": "http://registry.npm.taobao.org/string-width/download/string-width-1.0.2.tgz",
485
+      "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
486
+      "requires": {
487
+        "code-point-at": "1.1.0",
488
+        "is-fullwidth-code-point": "1.0.0",
489
+        "strip-ansi": "3.0.1"
490
+      }
491
+    },
492
+    "string_decoder": {
493
+      "version": "1.1.1",
494
+      "resolved": "http://registry.npm.taobao.org/string_decoder/download/string_decoder-1.1.1.tgz",
495
+      "integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
496
+      "optional": true,
497
+      "requires": {
498
+        "safe-buffer": "5.1.2"
499
+      }
500
+    },
501
+    "strip-ansi": {
502
+      "version": "3.0.1",
503
+      "resolved": "http://registry.npm.taobao.org/strip-ansi/download/strip-ansi-3.0.1.tgz",
504
+      "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
505
+      "requires": {
506
+        "ansi-regex": "2.1.1"
507
+      }
508
+    },
509
+    "strip-json-comments": {
510
+      "version": "2.0.1",
511
+      "resolved": "http://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-2.0.1.tgz",
512
+      "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
513
+      "optional": true
514
+    },
515
+    "tar": {
516
+      "version": "4.4.8",
517
+      "resolved": "http://registry.npm.taobao.org/tar/download/tar-4.4.8.tgz",
518
+      "integrity": "sha1-sZ7sP94qluZGZt+f20DFyhvDdH0=",
519
+      "optional": true,
520
+      "requires": {
521
+        "chownr": "1.1.1",
522
+        "fs-minipass": "1.2.5",
523
+        "minipass": "2.3.5",
524
+        "minizlib": "1.2.1",
525
+        "mkdirp": "0.5.1",
526
+        "safe-buffer": "5.1.2",
527
+        "yallist": "3.0.3"
528
+      }
529
+    },
530
+    "usb": {
531
+      "version": "1.5.0",
532
+      "resolved": "http://registry.npm.taobao.org/usb/download/usb-1.5.0.tgz",
533
+      "integrity": "sha1-PgeyPG2s8Gp8iAGukTkmcCqBghg=",
534
+      "optional": true,
535
+      "requires": {
536
+        "nan": "2.12.1",
537
+        "node-pre-gyp": "0.11.0"
538
+      }
539
+    },
540
+    "util-deprecate": {
541
+      "version": "1.0.2",
542
+      "resolved": "http://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz",
543
+      "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
544
+      "optional": true
545
+    },
546
+    "wide-align": {
547
+      "version": "1.1.3",
548
+      "resolved": "http://registry.npm.taobao.org/wide-align/download/wide-align-1.1.3.tgz",
549
+      "integrity": "sha1-rgdOa9wMFKQx6ATmJFScYzsABFc=",
550
+      "optional": true,
551
+      "requires": {
552
+        "string-width": "1.0.2"
553
+      }
554
+    },
555
+    "wrappy": {
556
+      "version": "1.0.2",
557
+      "resolved": "http://registry.npm.taobao.org/wrappy/download/wrappy-1.0.2.tgz",
558
+      "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
559
+    },
560
+    "xpc-connection": {
561
+      "version": "0.1.4",
562
+      "resolved": "http://registry.npm.taobao.org/xpc-connection/download/xpc-connection-0.1.4.tgz",
563
+      "integrity": "sha1-3Nf6oq7Gt6bhjMXdrQQvejTHcVY=",
564
+      "optional": true,
565
+      "requires": {
566
+        "nan": "2.12.1"
567
+      }
568
+    },
569
+    "yallist": {
570
+      "version": "3.0.3",
571
+      "resolved": "http://registry.npm.taobao.org/yallist/download/yallist-3.0.3.tgz",
572
+      "integrity": "sha1-tLBJ4xS+VF486AIjbWzSLNkcPek="
573
+    }
574
+  }
575
+}

+ 14 - 0
package.json

@@ -0,0 +1,14 @@
1
+{
2
+  "name": "wifi-ble-server",
3
+  "version": "1.0.0",
4
+  "description": "",
5
+  "main": "index.js",
6
+  "scripts": {
7
+    "test": "echo \"Error: no test specified\" && exit 1"
8
+  },
9
+  "author": "",
10
+  "license": "ISC",
11
+  "dependencies": {
12
+    "bleno": "^0.5.0"
13
+  }
14
+}