This commit is contained in:
Starbeamrainbowlabs 2018-11-15 19:02:30 +00:00
parent 5ebef82c63
commit 93e842c1c9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,6 +1,6 @@
// rf95_client.pde
// -*- mode: C++ -*-
// Example sketch showing how to create a simple messageing client
// Example sketch showing how to create a simple messaging client
// with the RH_RF95 class. RH_RF95 class does not provide for addressing or
// reliability, so you should only use RH_RF95 if you do not need the higher
// level messaging abilities.
@ -12,6 +12,9 @@
#include <RH_RF95.h>
// Singleton instance of the radio driver
// Wemos D1 R2
//RH_RF95 rf95(8, 2);
// Arduino Uno
RH_RF95 rf95(10, 2);
int led = 7; // do not use SPI pins
@ -21,7 +24,7 @@ void setup()
pinMode(led, OUTPUT);
Serial.begin(9600);
while (!Serial) ; // Wait for serial port to be available
//while (!Serial) ; // Wait for serial port to be available
Serial.println("Client starting");
@ -34,7 +37,7 @@ void setup()
// Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
rf95.setFrequency(868.0);
rf95.setFrequency(868.1);
delay(100);
}
@ -79,5 +82,3 @@ void loop()
digitalWrite(led, LOW);
delay(400);
}