ALLTERCO / shelly-script-examples

Shelly Scripts for Gen2 Shelly devices
Apache License 2.0
189 stars 55 forks source link

ble-ruuvi.js - Give error if bluetooth is off #65

Open frspp opened 1 year ago

frspp commented 1 year ago

Is your feature request related to a problem? Please describe. Script https://github.com/ALLTERCO/shelly-script-examples/blob/main/ble-ruuvi.js does not give an error if bluetooth is off. It runs but without any results.

Describe the solution you'd like Give an error and stop script execution if bluetooth is off.

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.

taulfsime commented 1 year ago

@frspp Thank you for the report. The same logic for checking the Bluetooth will be applied to all scripts that are using BLE as the ble-shelly-blu.js example.