element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino Get Commands From ESP8266
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 390 subscribers
  • Views 528 views
  • Users 0 members are here
  • esp8266
  • prototyping
  • relays
  • arduino
Related

Arduino Get Commands From ESP8266

nicolaoscon96
nicolaoscon96 over 8 years ago

Hello there,

 

Hope you all good. As I said on others post of mine i am working on a project for a house automation system that am designing... I want to ask a questions about our favorite microprocessor Arduino. Before i go to the market and buy the other stuff i need (actually the esp8266 and some other sensors) i wanted to ask>>? If i connect a relay board(8 relays)  on the arduino (mega) and connect an esp8266 on it am i going to be able to send commands via Internet to control the relays? (yes i know there are board with onboard esp8266 and relays) but i want to control more than relays.

 

Thanks a lot ,

nicolaoscon96

  • Sign in to reply
  • Cancel

Top Replies

  • BigG
    BigG over 7 years ago in reply to BigG +1
    ... and for completeness... adding one more... which is Blynk . Blynk is a customisable mobile app, which you can use to send commands to your ESP8266. It's another pub-sub type application. You simply…
  • nicolaoscon96
    nicolaoscon96 over 7 years ago in reply to BigG +1
    @BigG Thanks a lot for the help i am going to try them and see what's best.. Thanks again, nicolaoscon96
Parents
  • BigG
    BigG over 8 years ago

    Short answer: No you cannot do this directly.

     

    Medium answer: As per above... but... yes, it is possible once you've configured your home router to allow incoming commands to be directed to the ESP8266 on your LAN and you have subscribed to a Dynamic DNS service, such as DynDNS for example, that keeps track of your changing home router IP address.

     

    Longer answer: As per above... but... you do not want to do it that way as not recommended for a raft of reasons (search online for all the security risks). Instead you need to look at using a cloud service, such as an MQTT broker for example, which your ESP8266 will need to subscribe to. Then you can "publish" or send commands to this MQTT broker (instead to trying to communicate directly to your home router) and your commands/message are then redirected to the ESP8266 for you (this is achieved so long as the ESP8266 remains connected/subscribed to the broker service). Other methods/techniques/technologies are around too. Here is one you can also consider: https://www.nabto.com/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • BigG
    BigG over 8 years ago in reply to BigG

    I forgot to add this into my original comment, as it is, in my opinion anyway, a worthy cloud-based option in its own right... and that is Google Firebase. It is a derivative of Pub-Sub architecture, done in a clever way. Google Firebase have an ESP8266 library on Github which will get you started. What I like about Firebase is the ease of integration with either Web App or Mobile App.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • BigG
    BigG over 8 years ago in reply to BigG

    I forgot to add this into my original comment, as it is, in my opinion anyway, a worthy cloud-based option in its own right... and that is Google Firebase. It is a derivative of Pub-Sub architecture, done in a clever way. Google Firebase have an ESP8266 library on Github which will get you started. What I like about Firebase is the ease of integration with either Web App or Mobile App.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube