|
301 | 301 | {
|
302 | 302 | temperature:
|
303 | 303 | {
|
304 |
| - uuid: '6fbe1da7-2001-44de-92c4-bb6e04fb0212', |
| 304 | + uuid: '19b10000-2001-537e-4f6c-d104768a1214', |
305 | 305 | properties: ['BLERead'],
|
306 | 306 | structure: ['Float32'],
|
307 | 307 | data: { temperature: [] }
|
308 | 308 | },
|
309 | 309 | humidity:
|
310 | 310 | {
|
311 |
| - uuid: '6fbe1da7-3001-44de-92c4-bb6e04fb0212', |
| 311 | + uuid: '19b10000-3001-537e-4f6c-d104768a1214', |
312 | 312 | properties: ['BLERead'],
|
313 | 313 | structure: ['Uint8'],
|
314 | 314 | data: { humidity: [] }
|
315 | 315 | },
|
316 | 316 | pressure:
|
317 | 317 | {
|
318 |
| - uuid: '6fbe1da7-4001-44de-92c4-bb6e04fb0212', |
| 318 | + uuid: '19b10000-4001-537e-4f6c-d104768a1214', |
319 | 319 | properties: ['BLERead'],
|
320 | 320 | structure: ['Uint8'],
|
321 | 321 | data: { pressure: [] }
|
322 | 322 | },
|
323 | 323 | accelerometer:
|
324 | 324 | {
|
325 |
| - uuid: '6fbe1da7-5001-44de-92c4-bb6e04fb0212', |
| 325 | + uuid: '19b10000-5001-537e-4f6c-d104768a1214', |
326 | 326 | properties: ['BLENotify'],
|
327 | 327 | structure: ['Float32', 'Float32', 'Float32'],
|
328 | 328 | data: { 'Ax': [], 'Ay': [], 'Az': [] }
|
329 | 329 | },
|
330 | 330 | gyroscope:
|
331 | 331 | {
|
332 |
| - uuid: '6fbe1da7-6001-44de-92c4-bb6e04fb0212', |
| 332 | + uuid: '19b10000-6001-537e-4f6c-d104768a1214', |
333 | 333 | properties: ['BLENotify'],
|
334 | 334 | structure: ['Int16', 'Int16', 'Int16'],
|
335 | 335 | data: { 'x': [], 'y': [], 'z': [] }
|
336 | 336 | },
|
337 | 337 | led: {
|
338 |
| - uuid: '6fbe1da7-8001-44de-92c4-bb6e04fb0212', |
| 338 | + uuid: '19b10000-8001-537e-4f6c-d104768a1214', |
339 | 339 | properties: ['BLEWrite'],
|
340 | 340 | structure: ['Uint8', 'Uint8', 'Uint8'],
|
341 | 341 | data: { 'R': [], 'G': [], 'B': [] },
|
342 | 342 | writeBusy: false, // we need to track this to avoid 'GATT operation in progress' errors
|
343 | 343 | writeValue: null
|
344 | 344 | },
|
345 | 345 | quaternion: {
|
346 |
| - uuid: '6fbe1da7-7001-44de-92c4-bb6e04fb0212', |
| 346 | + uuid: '19b10000-7001-537e-4f6c-d104768a1214', |
347 | 347 | properties: ['BLENotify'],
|
348 | 348 | structure: ['Float32', 'Float32', 'Float32', 'Float32'],
|
349 | 349 | data: { 'x': [], 'y': [], 'z': [], 'w': [] },
|
|
352 | 352 | },
|
353 | 353 | bsec:
|
354 | 354 | {
|
355 |
| - uuid: '6fbe1da7-9001-44de-92c4-bb6e04fb0212', |
| 355 | + uuid: '19b10000-9001-537e-4f6c-d104768a1214', |
356 | 356 | properties: ['BLERead'],
|
357 | 357 | structure: ['Float32'],
|
358 | 358 | data: { 'bsec': [] }
|
359 | 359 | },
|
360 | 360 | co2:
|
361 | 361 | {
|
362 |
| - uuid: '6fbe1da7-9002-44de-92c4-bb6e04fb0212', |
| 362 | + uuid: '19b10000-9002-537e-4f6c-d104768a1214', |
363 | 363 | properties: ['BLERead'],
|
364 | 364 | structure: ['Uint32'],
|
365 | 365 | data: { 'co2': [] }
|
366 | 366 | },
|
367 | 367 | gas:
|
368 | 368 | {
|
369 |
| - uuid: '6fbe1da7-9003-44de-92c4-bb6e04fb0212', |
| 369 | + uuid: '19b10000-9003-537e-4f6c-d104768a1214', |
370 | 370 | properties: ['BLERead'],
|
371 | 371 | structure: ['Uint8'],
|
372 | 372 | data: { 'gas': [] }
|
373 | 373 | }
|
374 | 374 | }
|
375 | 375 |
|
376 | 376 | const sensors = Object.keys(NiclaSenseME);
|
377 |
| - const SERVICE_UUID = '6fbe1da7-0000-44de-92c4-bb6e04fb0212'; |
| 377 | + const SERVICE_UUID = '19b10000-0000-537e-4f6c-d104768a1214'; |
378 | 378 | var bytesReceived = 0;
|
379 | 379 | var bytesPrevious = 0;
|
380 | 380 |
|
|
0 commit comments