 // It is designed to work with the other example rf95_client
 // Tested with Anarduino MiniWirelessLoRa
 
-
+#include <EEPROM.h>
 #include <SPI.h>
 #include <RH_RF95.h>
 

				else {
					sprintf(line, "???(%d,%d,%d,%d,%d)", pong.count, pong.rssi, pong.initiator, pong.replier, pong.type);
					Serial.println(line);
				}
			} else {
				Serial.println(F("Got spurious message: "));

#define T_PING 1
#define T_PONG 2

void genId(const bool update) {
	const bool validMarker = EEPROM.read(1) == 123;

	if (validMarker && !update)
		ping.initiator = EEPROM.read(0);
	else {
		Serial.println(F("Update/set ID"));
		ping.initiator = rand();
		if (!validMarker)
			EEPROM.write(1, 123);
		EEPROM.write(0, ping.initiator);
		delay(5);
		EEPROM.read(1);
		EEPROM.read(0);
	}
}

void setup() {
	Serial.begin(115200);
	Serial.println(F("Init LoRa test"));

	if (!rf95.init())
		Serial.println(F("init failed"));
	// Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
