diff --git a/CSCE838-Lab4-Node/CSCE838-Lab4-Node.ino b/CSCE838-Lab4-Node/CSCE838-Lab4-Node.ino index ecd81f6db0bb9e8b04376c3e43b8569744bc7c10..d4b55184934e557945bc6262bc28875bdfe34724 100644 --- a/CSCE838-Lab4-Node/CSCE838-Lab4-Node.ino +++ b/CSCE838-Lab4-Node/CSCE838-Lab4-Node.ino @@ -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))