Lora-net / sx1302_hal

SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...)
Other
219 stars 272 forks source link

Question: How to convert RSSI of Float to RSSI of uint16_t? #27

Closed SawXu closed 1 year ago

SawXu commented 3 years ago

Question: How to convert RSSI of float to RSSI of uint16_t?

I choosed sx1302 to Gateway and sx1261 to nodes in Lora network. I could get this int16_t format of RSSI in the codes of sx1261. For example, value maybe are "-70", "-75". image

Then I want to get a RSSI value that format just like sx1261. But I don't how to convert the rssic to the int16_t format.

I find RSSI in here. And There are float type. image

Then I found RSSI in here. And There are uint8_t type. image

smtc-bot commented 1 year ago

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!