Skip to content

Commit c0c368b

Browse files
committed
Change BLE UUID
1 parent a2a3931 commit c0c368b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

NiclaSenseME-dashboard/NiclaSenseME/NiclaSenseME.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Sketch and web dashboard copy-fixed to be used with the Nicla Sense ME by Pablo
2424
#include "Arduino_BHY2.h"
2525
#include <ArduinoBLE.h>
2626

27-
#define BLE_SENSE_UUID(val) ("6fbe1da7-" val "-44de-92c4-bb6e04fb0212")
27+
#define BLE_SENSE_UUID(val) ("19b10000" val "-537e-4f6c-d104768a1214")
2828

2929
const int VERSION = 0x00000000;
3030

NiclaSenseME-dashboard/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,49 +301,49 @@
301301
{
302302
temperature:
303303
{
304-
uuid: '6fbe1da7-2001-44de-92c4-bb6e04fb0212',
304+
uuid: '19b10000-2001-537e-4f6c-d104768a1214',
305305
properties: ['BLERead'],
306306
structure: ['Float32'],
307307
data: { temperature: [] }
308308
},
309309
humidity:
310310
{
311-
uuid: '6fbe1da7-3001-44de-92c4-bb6e04fb0212',
311+
uuid: '19b10000-3001-537e-4f6c-d104768a1214',
312312
properties: ['BLERead'],
313313
structure: ['Uint8'],
314314
data: { humidity: [] }
315315
},
316316
pressure:
317317
{
318-
uuid: '6fbe1da7-4001-44de-92c4-bb6e04fb0212',
318+
uuid: '19b10000-4001-537e-4f6c-d104768a1214',
319319
properties: ['BLERead'],
320320
structure: ['Uint8'],
321321
data: { pressure: [] }
322322
},
323323
accelerometer:
324324
{
325-
uuid: '6fbe1da7-5001-44de-92c4-bb6e04fb0212',
325+
uuid: '19b10000-5001-537e-4f6c-d104768a1214',
326326
properties: ['BLENotify'],
327327
structure: ['Float32', 'Float32', 'Float32'],
328328
data: { 'Ax': [], 'Ay': [], 'Az': [] }
329329
},
330330
gyroscope:
331331
{
332-
uuid: '6fbe1da7-6001-44de-92c4-bb6e04fb0212',
332+
uuid: '19b10000-6001-537e-4f6c-d104768a1214',
333333
properties: ['BLENotify'],
334334
structure: ['Int16', 'Int16', 'Int16'],
335335
data: { 'x': [], 'y': [], 'z': [] }
336336
},
337337
led: {
338-
uuid: '6fbe1da7-8001-44de-92c4-bb6e04fb0212',
338+
uuid: '19b10000-8001-537e-4f6c-d104768a1214',
339339
properties: ['BLEWrite'],
340340
structure: ['Uint8', 'Uint8', 'Uint8'],
341341
data: { 'R': [], 'G': [], 'B': [] },
342342
writeBusy: false, // we need to track this to avoid 'GATT operation in progress' errors
343343
writeValue: null
344344
},
345345
quaternion: {
346-
uuid: '6fbe1da7-7001-44de-92c4-bb6e04fb0212',
346+
uuid: '19b10000-7001-537e-4f6c-d104768a1214',
347347
properties: ['BLENotify'],
348348
structure: ['Float32', 'Float32', 'Float32', 'Float32'],
349349
data: { 'x': [], 'y': [], 'z': [], 'w': [] },
@@ -352,29 +352,29 @@
352352
},
353353
bsec:
354354
{
355-
uuid: '6fbe1da7-9001-44de-92c4-bb6e04fb0212',
355+
uuid: '19b10000-9001-537e-4f6c-d104768a1214',
356356
properties: ['BLERead'],
357357
structure: ['Float32'],
358358
data: { 'bsec': [] }
359359
},
360360
co2:
361361
{
362-
uuid: '6fbe1da7-9002-44de-92c4-bb6e04fb0212',
362+
uuid: '19b10000-9002-537e-4f6c-d104768a1214',
363363
properties: ['BLERead'],
364364
structure: ['Uint32'],
365365
data: { 'co2': [] }
366366
},
367367
gas:
368368
{
369-
uuid: '6fbe1da7-9003-44de-92c4-bb6e04fb0212',
369+
uuid: '19b10000-9003-537e-4f6c-d104768a1214',
370370
properties: ['BLERead'],
371371
structure: ['Uint8'],
372372
data: { 'gas': [] }
373373
}
374374
}
375375

376376
const sensors = Object.keys(NiclaSenseME);
377-
const SERVICE_UUID = '6fbe1da7-0000-44de-92c4-bb6e04fb0212';
377+
const SERVICE_UUID = '19b10000-0000-537e-4f6c-d104768a1214';
378378
var bytesReceived = 0;
379379
var bytesPrevious = 0;
380380

0 commit comments

Comments
 (0)