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 ESP8266 as an IOT style device
  • 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
  • State Verified Answer
  • Replies 6 replies
  • Answers 1 answer
  • Subscribers 393 subscribers
  • Views 874 views
  • Users 0 members are here
  • arduino iot
  • esp8266
Related

ESP8266 as an IOT style device

theresajayne
theresajayne over 5 years ago

I have been racking my Brain on how to implement what i am looking to use. Obviously I am using Arduino rather than any of the Node MCU Lua etc,

What I am after:

 

It will be controlling a machine that I have buttons for but also I want to have an APP on a phone that can control it from anywhere.

 

I can program Android so that is not a problem and I can have PHP on the web as an api interface.

 

The Process would be as follows, Device is not paired, It goes into server mode and announces its own SSID, The app would connect to this and would (like an alexa) allow entering of local Wifi credentialsonce it is connected then it will connect to the remote server and register itself along with the APP id so that this device can only be controlled by this current device.

In the case of losing internet the device will try say 10 times at ever growing times and if it still does not connect it will again go into connect mode, however if the device has already registered on the php server then although any app can enter credentials it will revert to the id of the master controlling app when reconnected.

 

The problem i have is how do i allow the app "using http/s" to instant control the device, I need an almost 0 latency response, someone has suggested make the ESP do a get from the server and when it times out reget, so as soon as the message comes in from the app it can respond, part of the mechanism is an up / down linear actuator and if it doesnt stop in time the carried items could be damaged so I need this level of control possibly from across the globe.

 

How would be the best way to implement this connectivity and is there any hidden clever way of doing this sort of client-server-client connectivity.

  • Sign in to reply
  • Cancel

Top Replies

  • Sean_Miller
    Sean_Miller over 5 years ago +4 verified
    When I need a low latency, "virtual wire" as in the case of replacing an RC transmitter, I go with the Xbee platform . But, for IoT where I just need a couple of pins per device such as for Home Automation…
  • BigG
    BigG over 5 years ago +1
    Suggest trying PubNub, if latency is important. There's an Arduino library out there. Alternatively, look at Google's Firebase. Good for mobile app linkage. Quite a few Arduino libraries for Firebase out…
Parents
  • clem57
    0 clem57 over 5 years ago

    theresajayne Cannot give specifics, but I like this https://www.instructables.com/id/GETTING-STARTED-WITH-IoT-With-ESP8266-MicroControl/  which can give you the overview perceptive. Hope that helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 5 years ago

    theresajayne Cannot give specifics, but I like this https://www.instructables.com/id/GETTING-STARTED-WITH-IoT-With-ESP8266-MicroControl/  which can give you the overview perceptive. Hope that helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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