ConsentiumNow Library Documentation
Overview
The ConsentiumNow library provides seamless ESP-NOW communication between ESP32-compatible devices. It is a powerful tool designed to facilitate real-time, reliable data exchange for IoT applications using custom user-defined data structures. Built with simplicity and flexibility in mind, the library is lightweight yet robust, supporting a wide range of IoT use cases.
Key Features
Lightweight and flexible ESP-NOW integration.
Customizable data structures for specific applications.
Supports one-to-one and one-to-many communication.
Easy-to-use API for sending and receiving data.
Highly efficient for low-latency IoT communication.
Getting Started
Prerequisites
Before you begin, ensure you have the following:
Hardware: ESP32-compatible boards (minimum two for testing).
Software: Arduino IDE (or PlatformIO) configured for ESP32 development.
Basic Knowledge: Familiarity with the ESP-NOW protocol and Arduino programming basics.
Installation
Clone this repository or download it as a ZIP.
Open the Arduino IDE and navigate to Sketch > Include Library > Add .ZIP Library.
Select the
ConsentiumNow
library ZIP file.
Alternatively, extract the ZIP into your Arduino libraries
folder:
<Arduino Sketchbook Folder>/libraries/ConsentiumNow
Usage Examples
1. Basic Sender
2. Basic Receiver
Multi-Sender to One Receiver
Configure the receiver to recognize multiple senders.
Use
addPeer()
to add the MAC addresses of each sender.
Custom Data Structures
Modify the struct
to include additional fields based on your use case.
Use the custom structure in both sender and receiver implementations.
Troubleshooting Guide
Common Issues and Fixes
No Data Received
Incorrect MAC address
Verify sender and receiver MAC addresses.
Inconsistent Data Transfer
ESP-NOW interference or timeout
Ensure devices are within range.
Compilation Errors
Library not included correctly
Reinstall the library and check IDE paths.
Debugging Tips
Use
Serial.print
statements to log important steps.Verify MAC addresses using
WiFi.macAddress()
on each device.
FAQs
1. How many devices can communicate simultaneously using ESP-NOW?
ESP-NOW supports up to 10 peers (devices) in station mode.
2. Can I encrypt the data sent using this library?
Currently, the library does not support encryption. Use HTTPS or secure layers for sensitive data.
3. How reliable is ESP-NOW for IoT applications?
ESP-NOW is highly reliable for short-range, low-latency communication, making it ideal for IoT.
Support
For detailed tutorials, visit Consentium IoT Docs. For further assistance, contact: [email protected].
License
This project is licensed under the MIT License. Redistribution must include the original license header. See the LICENSE
file for details.
Feedback and Contributions
We welcome contributions!
Submit pull requests for improvements.
Report bugs or suggest features through GitLab Issues.
Together, let's build robust IoT solutions with ConsentiumNow! 🚀
Last updated