CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
699 stars 352 forks source link

set max 20dBm in gateway #215

Open surender128 opened 6 years ago

surender128 commented 6 years ago

Hi, I read the SX1272.cpp and SX1721.h files. In that i dont know how to set the 20dBm bye calling 'X'. please help me for to change

CongducPham commented 6 years ago

Simply with either setPowerDBM(20) or setPower('X')

CongducPham commented 6 years ago

For the gateway side, read this: https://github.com/CongducPham/LowCostLoRaGw/tree/master/gw_full_latest#compiling-the-low-level-gateway-program

So you should have something like:

CFLAGS=-DPABOOST -DMAX_DBM=20