Uses noble for BLE peripheral scanning, then attempts to parse discovered peripherals using the Eddystone Protocol Specification.
Based on sandeepmistry project : https://github.com/sandeepmistry/node-eddystone-beacon-scanner
Modified to scan and get all the sensors informations with a Sensoro Yunzi Beacon and store them in a JSON file.
The JSON is then send to a remote server using websocket.
var EddystoneYunziScanner = ;
sensor_id- Beacon's ID.
sensor_motion- Binary element so that 1 = moving / 0 = still.
sensor_light- Luminous flux in lux.
sensor_temp- Temperature in °C.
sensor_rssi- Beacon strength signal indicator in db.
sensor_battery- Beacon battery indicator in %.
raspberry_id- Raspberry's ID. It's recommended to comment it if you are not using one.
Don't forget to select the right port:
var port = 8080;