dragouf / awox-smartlight

control awox smartlight with nodejs
MIT License
27 stars 6 forks source link

Discovering new lights #2

Open Baltor12 opened 6 years ago

Baltor12 commented 6 years ago

Hey,

I would like to know how we can discover/ scan new AWOX lights and then control them.

From the code i can see you are controlling the light via connecting it through the MAC address.

Could you also please let me know how we can get the adress from the light.

thanks

morgan-wild commented 5 years ago

UP

rzr commented 5 years ago

Using: https://github.com/abandonware/noble/blob/master/examples/advertisement-discovery.js

  sudo hciconfig hci0 up # reactivate hci0 or another hciX you want to use
  sudo modprobe -v btusb &&  sudo $(which node) examples/advertisement-discovery.js