Adafruit_BME280 bme(BME_CS) // hardware SPI Set your access point network credentialsĬonst char* ssid = "ESP8266-Access-Point" The above copyright notice and this permission notice shall be included in allĬopies or substantial portions of the Software. Of this software and associated documentation files. Permission is hereby granted, free of charge, to any person obtaining a copy You may also like: Complete Guide for SSD1306 OLED Display with ESP8266 #1 ESP8266 Server (Access Point) Go to Sketch > Include Library> Manage Libraries and search for the library name. These can be installed through the Arduino Library Manager. To interface with the OLED display you need the following libraries. You may also like: Guide for BME280 with ESP8266 I2C SSD1306 OLED Libraries Go to Sketch > Include Library> Manage Libraries and search for the library name. The following libraries can be installed through the Arduino Library Manager. You may also like: DHT11/DHT22 Asynchronous Web Server with the ESP8266 BME280 Libraries ZIP library… and select the libraries you’ve just downloaded. So, you need to unzip the libraries and move them to the Arduino IDE installation libraries folder.Īlternatively, you can go to Sketch > Include Library > Add. These libraries are not available to install through the Library Manager. ESPAsync TCP library ( download ESPAsyncTCP library).ESPAsyncWebServer library ( download ESPAsyncWebServer library).We’ll use the following libraries to handle HTTP request: You can use the preceding links or go directly to /tools to find all the parts for your projects at the best price!įor this tutorial you need to install the following libraries: Asynchronous Web Server Libraries 2x ESP8266 Development boards – read Best ESP8266 Boards Comparison.Parts Requiredįor this tutorial, you need the following parts: The ESP8266 server is listening on those routes and when a request is made, it sends the corresponding sensor readings via HTTP response. The client receives the readings and displays them on the OLED display.Īs an example, the ESP8266 client requests temperature, humidity and pressure to the server by making requests on the server IP address followed by /temperature, /humidity and /pressure, respectively (HTTP GET).The server listens for incoming requests and sends an appropriate response with the readings. It just needs to use the IP address of the server to make a request on a certain route: /temperature, /humidity or /pressure. The client can make HTTP GET requests to the server to request sensor data or any other information.So, it can connect to the ESP8266 server wireless network. The ESP8266 client is set as a station.So, other Wi-Fi devices can connect to that network ( SSID: ESP8266-Access-Point, Password: 123456789). The ESP8266 server creates its own wireless network ( ESP8266 Soft-Access Point).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |