Control Your Esp6266 From the Internet? Free and Easy

Introduction: Control Your Esp6266 From the Internet? Free and Easy

Share - Learn - Makers. Projects, Articles, #automation, #PLC, #Arduino, #IoT and More PDAControl

How many times have we not looked for a simple way to communicate with our devices through the Internet without complications and / or complex intermediary applications, DNS, IP addresses or VPN's.

Many times I have been asked how to turn on a led, relay or view a temperature from the Internet in an easy way, here a possible answer.

For a long time I had in mind this application to control or interact an ESP8266 from the Internet using the existing IRC servers, it only requires 3 things an available IRC server, nickname and channel.

PDAControl Complete Tutorials

ESP8266 IRCControl from Internet IoT v1.0 Part 1

http://pdacontrolen.com/esp8266-irccontrol-from-in...

Try the application from here! I'll leave a ESP8266 Connected a few days to try and / or if you want to download and add more devices ESP-IRCControl WEB IRC Client.

http://pdacontrolen.com/irc/

ESP8266 IRCControl desde Internet IoT v1.0 Part 1

http://pdacontroles.com/esp8266-irccontrol-interac...

Prueba la Aplicacion desde Aqui!! Dejare un ESP8266 Conectado unos dias para que prueben y/o si quieren descargen ya agregen mas dispositivos ESP-IRCControl WEB IRC Client.

http://pdacontroles.com/irc/


Step 1: Internet Relay Chat (IRC)

Internet Relay Chat (IRC)

Is IRC(INTERNET RELAY CHAT)is a transmission protocol (TCP/IP), which handles chats and asynchronous communication, chats can be in large groups of users or even one by one.

IRC exists since 1988, although currently it is not as popular as it was a few years ago but there are still many active groups, generally free software discussion communities, IRC servers are active, current and public.

IRC can implement Transport Layer Security (TLS) or Secure Sockets Layer (SSL) to encrypt data between users, it also allows file sending. Most messages sent between an IRC client and the IRC server are sent in plain text.

Technically, IRC is a protocol that allows sending messages to one or many users, using commands for certain actions, such as "PRIVMSG" to send a message to a channel / group or user.

More Information: IRC Commands list, Wikipedia source.

More Information: IRC, Wikipedia source.

More Information: IRC Protocol, linux.org. forum Wikipedia source

Suggestion: Try now! .. I'll leave a esp8266 connected for a while, send commands from here ... an IRC Web client very easy.

Step 2: ESP8266 IRC Client

ESP8266 IRC Client

You could say that creating an IRC client is very simple, technically make connections with a server for a certain port, send and receive messages, for some time I have done tests with esp8266 as an IRC client, I have made some improvements to the initial tests presented in previous tutorials.

To guarantee the existence or connection of the clients the IRC Server continuously sends "PING" to the client in this case ESP8266 would respond "PONG" indicating that it is still active in the channel, this verification is done automatically by our application.

The application has been created to work Answer by request, the ESP8266 will only respond under requests / commands or messages from external clients, it is preferred to avoid constant sending of data without being requested, bombing or perhaps blocking of IRC servers.

Suggestion: Try now! .. I'll leave a esp8266 connected for a while, send commands from here ... an IRC Web client very easy.

Step 3: Materials and Where to Buy Them Very Cheap !!

Step 4: IRCControl V1.0 ESP8266 From Internet Easy #IoT Part 1

Step 5: Control and Monitoring = Commands

Control and Monitoring

Below I will list some of the features of the irc application implemented in an ESP8266, the main functions of Monitoring and Control, some commands have been created, which allow to request values, states or data from the esp8266:

List of commands HERE:

Downloads: Arduino ide & Github code pdacontrolen.com

Suggestion: Try now! .. I'll leave a esp8266 connected for a while, send commands from here ... an IRC Web client very easy.

Step 6: Try With My ESP8266 Now .....

IRC Client

enter and send a command or if you want to download the code and test .. adding your ESP8266

Try now! .. I'll leave a esp8266 connected for a while, send commands from here ... an IRC Web client very easy.

  1. Command: "HIGH GPIOXX" example: "HIGH GPIO12" Turn on GPIO outputs
  2. Command: "LOW GPIOXX" example: "LOW GPIO12" Turn off GPIO outputs
  3. Command: "READ ADC0"
  4. Command: "ESP SIGNAL?"
  5. Command: "ESP Temp?" Temperature Sensor - DHT11
  6. Command: "ESP HR?" Relative humidity sensor - DHT11
  7. Command: "ESP Temp2?" Temperature Sensor - DS18B20
  8. Command: "ESP ?????"
  9. Command: "ESP8266IRCXXXXXX Help" or "Nicknameesp Help" - list available commands
  10. Command: sad face = :(

Step 7: Documents and Downloads

Some advantages

  • Bidirectional connection through the Internet without registering to Applications, Token's or Platforms, I consider it an IoT application.
  • Does not require Hosting, Public Fixed IP Addresses, VPN's, special ports.
  • It is a simple TCP / IP connection, connection to a server and port 6777.
  • IRC servers such as freenode are public have always been there.
  • It allows to create temporary channels by a user, which are technically private, example "#TestESPChannel" could be used for private tests, said channel will only be active as long as there are users in it.
  • By creating temporary groups we could create point-to-point P2P or M2M applications.
  • IMPORTANT: Do not use existing channels or already used in any community, very public.
  • There are IRC clients for almost all platforms, whether Android, Web, Python, C +, Arduino or Node-RED.
  • The protocol guarantees the sending and receiving of messages between clients.

PDAControl Complete Tutorials

ESP8266 IRCControl from Internet IoT v1.0 Part 1

http://pdacontrolen.com/esp8266-irccontrol-from-in...

Try the application from here! I'll leave a ESP8266 Connected a few days to try and / or if you want to download and add more devices ESP-IRCControl WEB IRC Client.

http://pdacontrolen.com/irc/

ESP8266 IRCControl desde Internet IoT v1.0 Part 1

http://pdacontroles.com/esp8266-irccontrol-interac...

Prueba la Aplicacion desde Aqui!! Dejare un ESP8266 Conectado unos dias para que prueben y/o si quieren descargen ya agregen mas dispositivos ESP-IRCControl WEB IRC Client.

http://pdacontroles.com/irc/


Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest

    Discussions