Push dev work to master #2
|
@ -3,12 +3,7 @@
|
|||
/** @module ble */
|
||||
/** Bluetooth Low Energy module */
|
||||
|
||||
const os = require('os')
|
||||
const bleno = require('bleno')
|
||||
const util = require('util')
|
||||
|
||||
const log = require('../log')('ble')
|
||||
const wifi = require('../wifi')
|
||||
|
||||
const DEVICE_NAME = process.env.DEVICE_ID || 'intval3'
|
||||
const SERVICE_ID = process.env.SERVICE_ID || 'intval3_ble'
|
||||
|
@ -16,9 +11,16 @@ const CHAR_ID = process.env.CHAR_ID || 'intval3char'
|
|||
const WIFI_ID = process.env.WIFI_ID || 'wifichar'
|
||||
const NETWORK = os.networkInterfaces()
|
||||
const MAC = getMac() || spoofMac()
|
||||
//
|
||||
|
||||
process.env.BLENO_DEVICE_NAME += '_' + MAC
|
||||
|
||||
const os = require('os')
|
||||
const bleno = require('bleno')
|
||||
const util = require('util')
|
||||
|
||||
const log = require('../log')('ble')
|
||||
const wifi = require('../wifi')
|
||||
|
||||
let currentWifi = 'disconnected'
|
||||
let getState
|
||||
|
||||
|
|
Loading…
Reference in New Issue