# ESP8266 RFM95 Gateway

**URL:** <https://www.thethingsnetwork.org/forum/t/esp8266-rfm95-gateway/14335>\
**Category:** \[obsolete\] SCPF\
**Created:** [May 19, 2018, 2:41pm UTC](https://www.thethingsnetwork.org/forum/t/esp8266-rfm95-gateway/14335 "2018-05-19T14:41:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojnetwork](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mojnetwork](https://www.thethingsnetwork.org/forum/u/mojnetwork)\
**Post date:** [May 19, 2018, 2:41pm UTC](https://www.thethingsnetwork.org/forum/t/esp8266-rfm95-gateway/14335/1 "2018-05-19T14:41:05Z")

</div>

Hi,

i am new to Lora. So sorry for stupid question 🙂

I would like to create my first test Lora Gateway.

1. The Things Console

REGISTER GATEWAY:  
a) Here i need Gateway EUI.  
So if i understand correctly i will get this Gateway EUI with running a sketch and than i will just read it from serial monitor. I assume this sketch is “Examples/TheThingsNetwork/LoraDeviceInfo”

1. Hardware

I have wired ESP12e with RFm95 like this:  
RFM95 | ESP12  
GND | GND  
3.3V | 3.3V  
MISO | MISO  
MOSI | MOSI  
SCK | CLK  
NSS | CS  
DIO0 | GPI05

1. Arduino IDE Sketch "Examples/TheThingsNetwork/LoraDeviceInfo:

#include \<TheThingsNetwork.h\>

#define loraSerial Serial1  
#define debugSerial Serial

// Replace REPLACE\_ME with TTN\_FP\_EU868 or TTN\_FP\_US915  
#define freqPlan TTN\_FP\_EU868

TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);

void setup()  
{  
loraSerial.begin(57600);  
debugSerial.begin(115200);  
}

void loop()  
{  
debugSerial.println(“Device Information”);  
debugSerial.println();  
ttn.showStatus();  
debugSerial.println();  
debugSerial.println(“Use the EUI to register the device for OTAA”);  
debugSerial.println("-------------------------------------------");  
debugSerial.println();

delay(10000);  
}

In serial monitor i am getting corrupted characters “⸮l⸮b|⸮⸮⸮⸮r⸮b⸮b⸮⸮nn⸮lnn⸮”

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [May 19, 2018, 2:56pm UTC](https://www.thethingsnetwork.org/forum/t/esp8266-rfm95-gateway/14335/2 "2018-05-19T14:56:31Z")

</div>

did you [search this forum](https://www.thethingsnetwork.org/forum/search?q=esp8266%20gateway) (or google) … there is a lot of info [out there](http://talk2lora.blogspot.nl/2016/10/building-lorawan-gateway-using-esp8266.html) _but some info could be a bit outdated._

[single channel gateway part 1](https://www.thethingsnetwork.org/forum/t/single-channel-gateway-part-1/798)  
[single channel gateway part 2](https://www.thethingsnetwork.org/forum/t/single-channel-gateway-part-2/5999)  
[single channel gateway part 3](https://www.thethingsnetwork.org/forum/t/single-channel-gateway-part-3/11546)

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [May 19, 2018, 3:02pm UTC](https://www.thethingsnetwork.org/forum/t/esp8266-rfm95-gateway/14335/3 "2018-05-19T15:02:05Z")

</div>


