now act like a real station

jd-update
Flavien Haas 7 years ago
parent cb78e64251
commit 0fc0588334

@ -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("-----------------------------");
delay(4000); SerialUSB.println("-----------------------------");
delay(4000);
}
delay(10000);
} }

Loading…
Cancel
Save