I bought this ESP8266 Relay, and I wish to connect to it (in order to install MicroPython, and use Python code). However, I can't find any way to start working with it.

The item is Wi-Fi discoverable, and got connected to. But from here, I couldn't get to its web page to try manage it, as I understand it.

I have also asked the seller, but they don't know how to support it.

EDIT 1 updated link

** EDIT 2**

added pic. snapshot connecting device

How can I connect to it in order to use MicroPython?

  • do some research about the esp8266 module that is connected to the relay board
    – jsotola
    Commented Jul 14, 2018 at 0:44
  • 1
    @jsotola- I did, but no lead on how to use it/ config when connected to such clients
    – guyd
    Commented Jul 14, 2018 at 4:31
  • when connected to such clients ... it is unclear if you are able to program the esp8266 or not ..... i think that the esp8266 that you bought has some kind of a demo program loaded ..... more info: instructables.com/id/How-to-use-the-ESP8266-01-pins
    – jsotola
    Commented Jul 14, 2018 at 21:43
  • maybe it only responds to a web interface like this (assuming the ip address to be .... change to match yours)
    – jsotola
    Commented Jul 14, 2018 at 21:45
  • trying - didnt work out
    – guyd
    Commented Jul 15, 2018 at 4:09

2 Answers 2


I would really recommend using C and the Arduino library for this since it is much simpler. There is a library for the esp8266 that makes it very easy to use. There is a straightforward connect method and sending data is just like normal socket programming. Let me know if you would be willing to use C and I will post the code. Good Luck!


This is the example code given in the docs for Arduino and esp8266. As you can see it is very straightforward. I have added some comments to explain this a little better.

#include <ESP8266WiFi.h> //This is the library I was talking about

void setup()
  Serial.begin(115200); //Turns on Serial monitor for debugging.

  WiFi.begin("network-name", "pass-to-network"); //The "begin" command uses the network name and password to connect to your network.

  while (WiFi.status() != WL_CONNECTED) //This is just to wait as it connects.

  Serial.print("Connected, IP address: ");
  Serial.println(WiFi.localIP()); //This will print the esp's ip

void loop() {
  //Add your code here to control the relay.
  //use digitalWrite(pin,HIGH) to send a 5 volt output to the pin stated.

Let me know if this helps.

  • 1
    Thank you for your helpful answer. Since I’m new to Arduino, can you please state the connection between two item? What is the purpose of the code after uploading it? Will ESP will be accessible when I’ll connected back to relays module?
    – guyd
    Commented Aug 7, 2018 at 8:52
  • The connection is that you can use the Arduino IDE to program the ESP. In addition to that, you can use the Arduino to program the ESP if you don't have a serial breakout. After uploading it you can treat the ESP as an Arduino with WiFi and 2 GPIO pins(Which can be used to contrtol the relay). So, even after restarting, the ESP retains the code and will connect to the same network. -- Notice: You will need to add the necessary boards in the Arduino IDE-- Commented Aug 8, 2018 at 19:21

Include SSID and Password of gateway or router in the program, because we can make EsP 8266 to act as an MCU, it is the only way in your project to connect with internet, you have to configure with your router and provide routers SSID and password inside the program and allow to transfer the data after that you can create or integrate application in your mobile or web you can give the control of the button to control your relay by using Low high operations

  • Include SSID and Password of gateway or router in the program - what do you mean ? what program ?
    – guyd
    Commented Jul 16, 2018 at 3:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.