Skip to content
Snippets Groups Projects
Commit 04277cca authored by smurray798's avatar smurray798
Browse files

Modified node code to work at proper frequency and SF

parent 99d98039
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ static void txdone_func (osjob_t* job)
static void tx_func (osjob_t* job)
{
// say hello
//tx("Hello, world!", txdone_func);
//tx("Hello, world!", 14, txdone_func);
// Construct packet
constructTxPacket((Lab3Packet_t*)&txPacket);
......@@ -221,9 +221,9 @@ void setup()
// this is automatically set to the proper bandwidth in kHz, based on the selected channel
uint32_t uBandwidth;
LMIC.freq = 915000000; // originally was 903900000 in the example
uBandwidth = 125;
LMIC.datarate = US915_DR_SF7; // DR4
LMIC.freq = 000000; // originally was 903900000 in the example
uBandwidth = NETWORK_FREQUENCY * 1000000;
LMIC.datarate = US915_DR_SF9; // DR4 // originally US915_DR_SF7
LMIC.txpow = 20; // originally was 21 in the example
// disable RX IQ inversion
......@@ -262,8 +262,6 @@ int getNewTemperatureSample()
{
// Returns 0 if new temperature sample is valid, returns -1 if not
float temperature = TempZero.readInternalTemperature();
SerialUSB.print("Temp = ");
SerialUSB.println(temperature);
// Is this a valid temperature?
if ((temperature >= 0.1) && (temperature <= 100.0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment