node-poweredup icon indicating copy to clipboard operation
node-poweredup copied to clipboard

RSSI Always -60

Open adamleemiller opened this issue 4 years ago • 1 comments

So, I have moved on from trying to use the module directly in Vue and instead, I have purchased a Raspberry Pi 4 where I will run a NodeJS backend to communicate with the hubs and then a UI (Vue + Quasar) that will interact with the API. I am in the process of doing some initial development and have noticed that the RSSI is always -60, no matter what. It appears to be hard coded in one of the files.

https://github.com/nathankellenicki/node-poweredup/blob/master/src/hubs/basehub.ts#L61

Am I reading this wrong or is this an issue that needs to be fixed?

Thank you.

adamleemiller avatar Nov 05 '21 01:11 adamleemiller

Hello, The RSSI is initialized to -60 in BaseHub (which is the generic class) but it gets updated in LPF2Hub when the relevant property report is received. Those reports are "required" in the connect method of LPF2Hub

Note that updates to 0 are ignored, I do not know why.

aileo avatar Nov 15 '21 12:11 aileo