now act like a real station

This commit is contained in:
Flavien Haas 2018-05-26 20:00:37 +02:00
parent cb78e64251
commit 0fc0588334

View File

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