Arduino ESP8266库 [英] Arduino ESP8266 Library

查看:231
本文介绍了Arduino ESP8266库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是arduino的新手,只是给自己买了UNO和ESP8266模块.我设法将它们全部正确连接,并使用AT命令连接到我的家庭网络.

I am new to arduino and just picked up myself an UNO and an ESP8266 module. I've managed to wire them all up properly and connected to my home network using the AT commands.

但是现在我正尝试按照互联网上的教程进行操作,但问题是每个示例都包含一个库

But now im trying to follow tutorials on the internet but the problem is every example includes a library

#include <ESP8266WiFi.h>

例如本示例教程 https ://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/example-sketch-ap-web-server

因此,我尝试使用Google进行谷歌搜索,但找不到任何东西.我以为就是这样,因为它真的很简单,我错过了一些显而易见的东西.

So I have tried googling for it but can't find anything. I'm assuming thats because its really simple and Im missing something quite obvious.

帮助?

推荐答案

如果您想将Arduino用作ESP8266项目的主要部分,则有几种方法.

If you wish to use the Arduino as the main part of your ESP8266 project, there are several ways to go.

  • 使用Arduino向ESP8266发出AT指令.
  • 通过编程来创建自己的协议或消息系统 带有(例如)nodemcu或Arduino/ESP8266项目的ESP8266或 乐鑫或其他公司,然后使用相同的程序对Arduino进行编程 协议或消息传递系统,以便两者可以通话.
  • Use the Arduino to issue AT commands to the ESP8266.
  • Create your own protocol or messaging system by programming up the ESP8266 with (for example) nodemcu or the Arduino/ESP8266 project or Espressif or others, then program up your Arduino with the same protocol or messaging system so the two may talk.

或者,直接对ESP8266进行编程.无需Arduino.这样做,您可以翻转桌子并让ESP8266向Arduino发出消息,例如,如果您想让Arduino的许多GPIO和检测引脚执行某项操作.如果您只需要几个额外的GPIO引脚,请查看ESP8266范围以获得更多的GPIO引脚,例如ESP8266-12

Alternatively, just program your ESP8266 directly. No Arduino required. Doing so, you can turn the tables and get the ESP8266 to issue messages to the Arduino if for example if you wanted the many GPIO and sense pins of the Arduino to do something. If you only need a couple of extra GPIO pins, look at the ESP8266 range to get more GPIO pins, such as the ESP8266-12

选择哪个?

  • nodemcu将带您了解ESP8266的功能 可能是一个很好的入门者,容易上手,易于编程,但是除了最基本的程序以外,它的整理能力很差.
  • espressif的工具链很大,令人不快, 您将处在最前沿,但是社区的支持是 最小
  • Arduino/ESP8266项目非常棒,易于刷新,非常快, 非常稳定,并且与nodemcu不同,您可以创建一个大项目.如您所见,任何以#include <ESP8266WiFi.h>开头的arduino项目都不是arduino的,而是使用arduino IDE https的ESP8266. ://github.com/esp8266/Arduino
  • nodemcu will give you a good idea of the capabilities of the ESP8266 and may be a good starter, easy to flash, easy to program, but it is a poor finisher except for the most basic of programs.
  • espressif has a large toolchain, not pleasant to flash, you'll be at the cutting edge, however the community support is minimal
  • The Arduino/ESP8266 project is awesome, easy to flash, very fast, very stable, and unlike nodemcu you can create a large project. As you noticed, any arduino project starting with #include <ESP8266WiFi.h> is not for the arduino, but for the ESP8266 using the arduino IDE https://github.com/esp8266/Arduino

这篇关于Arduino ESP8266库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆