Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.4 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.4 KB

ESP8266 Arduino CMake configuration

This project demonstrates how to use the ESP8266 CMake build environment to develop an Arduino project using CMake for ESP8266 controllers. A sample project using the Arduino Client for MQTT is being developed.

Please read about the advantages using this build environment here.

Prerequisites

Installing the required tools (compiler, flasher, SDKs, etc.) is documented at the original ESP8266 CMake build environment page.

Preparing the source code

In order to refer to other projects, git submodules are being used in this build environment. Take your time to learn what git submodules are and how they work! It definitely pays on the long run.

First, clone the sample project source recursively to get both a clone of the project source as well as clones of all referenced git repositories:

cd <directory-to-hold-the-source-tree>
git clone --recursive https://github.com/rpoisel/esp8266-arduino-mqtt.git

TODO: Explanation of the project files/directories layout

Generating an Eclipse project

Importing the Eclipse project into the IDE

Building the project from the command-line