add the rest of the frame

jd-update
Flavien Haas 7 years ago
parent d2b354da18
commit c822463ef9

@ -21,7 +21,7 @@ void setup() {
message.ID = 0x0007;
message.TS = 0x0001;
message.DT = 0x0001;
message.D1 = 0x0002;
message.D1 = 0x0026;
message.D2 = 0x0003;
message.D3 = 0x0004;
@ -38,6 +38,16 @@ void loop() {
LoRa.beginPacket();
LoRa.write((uint8_t)(message.ID >> 8));
LoRa.write((uint8_t)message.ID);
LoRa.write((uint8_t)(message.TS >> 8));
LoRa.write((uint8_t)message.TS);
LoRa.write((uint8_t)(message.DT >> 8));
LoRa.write((uint8_t)message.DT);
LoRa.write((uint8_t)(message.D1 >> 8));
LoRa.write((uint8_t)message.D1);
LoRa.write((uint8_t)(message.D2 >> 8));
LoRa.write((uint8_t)message.D2);
LoRa.write((uint8_t)(message.D3 >> 8));
LoRa.write((uint8_t)message.D3);
LoRa.endPacket();
delay(3000);

Loading…
Cancel
Save