BLE scan example doesn't find devices

Ask, and ye shall receive.
jevoyat
Posts: 2
Joined: 12:09, 06 Apr 2016

BLE scan example doesn't find devices

Postby jevoyat » 12:22, 06 Apr 2016

Hi,
I just wanted to start somewhere, so I tried the "ble scan" example.
It loads and start correctly, but after pressing "start scan" it just keeps showing "scanning..." .

From my phone BT settings I see a device (Selfie Shutter) that I activated on purpose (not paired).

I am using a phone with Android 5.1.1

Thanks
JP

alex
Posts: 92
Joined: 00:59, 19 Nov 2013

Re: BLE scan example doesn't find devices

Postby alex » 12:51, 06 Apr 2016

Hi!

BLE scan is reasonably reliable, while all devices don't announce. But if you're in an environment with several devices, and they don't show up in the app while they do show up under Settings>Bluetooth, there is something fishy going on.

Is there any info under Tools in the workbench? What kind of phone do to have, is it an older one and does it have BLE?
Devices under Bluetooth Classic don't show, only BT 4.x devices.

best

Alex

jevoyat
Posts: 2
Joined: 12:09, 06 Apr 2016

Re: BLE scan example doesn't find devices

Postby jevoyat » 14:20, 08 Apr 2016

Hello,
apparently the remote control for shutting pictures doesn't use a BLE, but a normal BT ...
I tried with an RFduino and it is correctly detected.

Thank you very much.

just another newbie point. Clicking on "Tools" the "JavaScript Workbench" is opened. In the upper part there are some JS commands; in the lower part I get the results of evaluating. How am I supposed to receive error messages from the actually running app ?

Thanks again !

JP

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: BLE scan example doesn't find devices

Postby Fredrik » 13:03, 14 Apr 2016

Most of our example apps have this little snippet at the top of the HTML file:

Code: Select all

<script>
   // Redirect console.log to Evothings Workbench.
   if (window.hyper && window.hyper.log) { console.log = hyper.log }
</script>


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 19 guests