You are reading a single comment by @dklinkman and its replies. Click here to read the full conversation.
  • It's true that the hub will terminate if it doesn't detect any advertisements for around 10 seconds. The way the code is written if no advertisements are detected the hub assumes something might be wrong so it exits. If you're using the script in the foreground the hub will then restart. But again, if no advertisements, well you get the picture.

    For your other error it looks like the .httpRequest is failing and since there is no rejection handler and no catch you get the Uncaught Error report. If the hub is also exiting there may be a problem there causing the httpRequest to fail in turn.

    Lastly, in my experience it's not unusual to have to reset the puck if a ble request fails badly--like if the hub crashed during the request. Sometimes it will become visible again on its own. Like if a timeout expires. But often not.


Avatar for dklinkman @dklinkman started