From 4e848b1f1fa76e66fc7df85c8593ede959949db2 Mon Sep 17 00:00:00 2001 From: "S. Seegel" Date: Sun, 19 Mar 2017 15:36:47 +0100 Subject: [PATCH] setting rssithresh --- lacrosse.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lacrosse.py b/lacrosse.py index 3fc4352..5217f0b 100755 --- a/lacrosse.py +++ b/lacrosse.py @@ -13,9 +13,11 @@ rfm.SetParams( Freq = 868.300, #MHz center frequency Datarate = 9.579, #17.241, #kbit/s baudrate ModulationType = rfm69.FSK, #modulation + Deviation = 30, #30 kHz frequency deviation SyncPattern = [0x2d, 0xd4], #syncword Bandwidth = 200, #kHz bandwidth - LnaGain = 0x88 + LnaGain = 0x88, + RssiThresh = 220 ) print hex(rfm.ReadReg(0x07)) @@ -29,4 +31,4 @@ while 1: data = rfm.ReceivePacket(7) obj = rawsensor.CreateSensor(data) print(str(obj)) - \ No newline at end of file +