📦 Installation
Integrating the Nextino framework into your project is a straightforward process, thanks to the power of the PlatformIO ecosystem. This guide will walk you through the setup.
✅ Prerequisites
Before you begin, please ensure you have the following installed and configured:
- Visual Studio Code: The recommended editor for PlatformIO development.
- PlatformIO IDE Extension: The core build system and toolchain manager we'll be using.
- A Supported Development Board: Such as an ESP32, ESP8266, or STM32 board.
If you are new to PlatformIO, we highly recommend following their official ESP32 installation guide to get your environment ready.
🛠️ Adding Nextino to Your Project
There are two primary ways to add the Nextino framework to your PlatformIO project: via Git URL (recommended for the latest version) or via the official PlatformIO Registry (once published).
Method 1: Using the Git URL (Recommended)
This method ensures you are always using the latest version directly from the GitHub repository.
-
Open Your Project's
platformio.iniFile: This file is the heart of your PlatformIO project's configuration. -
Add Nextino to
lib_deps: Under your specific environment (e.g.,[env:esp32dev]), add thelib_depsoption and point it to the Nextino GitHub repository.platformio.ini[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_filters = colorize
lib_deps =
https://github.com/magradze/Nextino.git
That's it! The next time you build your project (PlatformIO: Build), PlatformIO will automatically:
- Clone the Nextino repository into your project's
.pio/libdepsdirectory. - Discover the library and make its header files available to your code.
- Execute the framework's internal build scripts.
Method 2: From the PlatformIO Registry (Future)
Once Nextino is officially published to the PlatformIO Registry, installation will be even simpler. You will be able to specify the library by its owner and name.
[env:esp32dev]
; ... other settings
lib_deps =
magradze/Nextino
This method is ideal for pinning your project to a specific, stable version of the framework.
📂 Project Structure Overview
After adding Nextino, a typical project structure will look like this:
MyNextinoProject/
├── include/
│ └── generated_config.h // Auto-generated by Nextino's build script
├── lib/
│ └── MyCustomModule/ // Your own project-specific modules
├── src/
│ └── main.cpp // Your main application file
└── platformio.ini // Your project configuration
The Nextino framework itself will be installed inside the hidden .pio directory, keeping your project's root clean.
Next Steps
Now that you have the framework installed, it's time to build your first application!