hkayann / node-red-contrib-ble-sense

Node-RED module for Bluetooth Low Energy (BLE) devices.
MIT License
6 stars 4 forks source link

Error While Connecting a Device : "Error: Unknown input." #3

Closed salmanfarisvp closed 2 years ago

salmanfarisvp commented 3 years ago

First of thanks for the node, I'm using this with raspberry pi and trying to read sensor value from a silicon lab dev board.

also noticed that, it's not outputting anything on debug window when we scan.

I used example flow, and changed that MAC as per the device address.

image

hkayann commented 3 years ago

Hi @salmanfarisvp,

You should start scanning, while it is scanning, you should insert your MAC address. Have you done like that?

salmanfarisvp commented 3 years ago

Hi @hkayann , Thanks for the swift replay, Sorry Where should I insert the MAC?

hkayann commented 3 years ago

Your setup is correct. You should scan with BLE Scanner. While it is scanning, you should insert your MAC to BLE Connect.

salmanfarisvp commented 3 years ago

Thanks @hkayann ,

Now I am getting. image

Here is my config

image

hkayann commented 3 years ago

This means that your peripheral (silicon lab dev board) is not allowing subscriptions. You need to fix the code/setting on your peripheral, it is not related to nodes/Pi.

salmanfarisvp commented 3 years ago

But I can easily read the same service with a mobile phone!

hkayann commented 3 years ago

Mobile applications like nRF Connect can bypass that one I guess. These nodes are mainly created for getting data from microcontrollers like Arduino Nano 33 BLE Sense. From the arduino/peripheral side, I am allowing subscriptions via BLEShortCharacteristic temperatureCharacteristic( BLE_UUID_TEMPERATURE, BLERead | BLENotify );. Here BLENotify allows subscribing to that certain characteristic.

If you have a similar thing, please have a look how you can allow that, because I am sure, there is nothing we can do from node/central side. If the issue persists it might worth to ask it in stackoverflow.com as well.

hkayann commented 2 years ago

I am closing as this should be handled from peripheral's side.

salmanfarisvp commented 2 years ago

Thanks @hkayann