|
|
@ -70,11 +70,14 @@ void loop()
|
|
|
|
SerialUSB.println(msg.d3, HEX);
|
|
|
|
SerialUSB.println(msg.d3, HEX);
|
|
|
|
SerialUSB.println(" ");
|
|
|
|
SerialUSB.println(" ");
|
|
|
|
|
|
|
|
|
|
|
|
SerialUSB.println("Sending packet !");
|
|
|
|
for(int i=0; i<3; i++){
|
|
|
|
LoRa.beginPacket();
|
|
|
|
SerialUSB.println("Sending packet !");
|
|
|
|
LoRa.write((uint8_t*)&msg, 12);
|
|
|
|
LoRa.beginPacket();
|
|
|
|
LoRa.endPacket();
|
|
|
|
LoRa.write((uint8_t*)&msg, 12);
|
|
|
|
|
|
|
|
LoRa.endPacket();
|
|
|
|
|
|
|
|
|
|
|
|
SerialUSB.println("-----------------------------");
|
|
|
|
SerialUSB.println("-----------------------------");
|
|
|
|
delay(4000);
|
|
|
|
delay(4000);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
delay(10000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|