https://github.com/mxkmn/hackathonesp32mqttvaluestransceiver
πΆ Transceive analog values by MQTT with ESP32 series MCU!
https://github.com/mxkmn/hackathonesp32mqttvaluestransceiver
arduino arduino-framework esp32 esp32-arduino mqtt mqtt-client platformio platformio-arduino
Last synced: 3 months ago
JSON representation
πΆ Transceive analog values by MQTT with ESP32 series MCU!
- Host: GitHub
- URL: https://github.com/mxkmn/hackathonesp32mqttvaluestransceiver
- Owner: mxkmn
- License: mit
- Created: 2022-11-14T09:30:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T14:43:24.000Z (over 2 years ago)
- Last Synced: 2025-02-12T22:38:47.215Z (5 months ago)
- Topics: arduino, arduino-framework, esp32, esp32-arduino, mqtt, mqtt-client, platformio, platformio-arduino
- Language: C++
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# ESP32 MQTT analog values transceiver
## Description (English)
This project allows to transmit data received from analog pins of ESP32 via MQTT 3.1.1. It is optimised for classic ESP32: it allows to work in two modes (checks 6 or 13 pins) due to platform limitations.
The code can be easily modified for other platforms (ESP32-S2, ESP32-C3), to transmit some other data (e.g. readings from digital pins or connected sensors).
The project was created in PlatformIO, to use it in Arduino IDE you have to download the library https://github.com/OttoWinter/pubsubclient. Additional changes may be needed due to the use of classes instead of normal .ino files.
## Description (Π ΡΡΡΠΊΠΈΠΉ)
ΠΡΠΎΡ ΠΏΡΠΎΠ΅ΠΊΡ ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΠΏΠ΅ΡΠ΅Π΄Π°Π²Π°ΡΡ Π΄Π°Π½Π½ΡΠ΅, ΠΏΠΎΠ»ΡΡΠ΅Π½Π½ΡΠ΅ Ρ Π°Π½Π°Π»ΠΎΠ³ΠΎΠ²ΡΡ ΠΏΠΈΠ½ΠΎΠ² ESP32, ΡΠ΅ΡΠ΅Π· ΠΏΡΠΎΡΠΎΠΊΠΎΠ» MQTT 3.1.1. ΠΠ½ ΠΎΠΏΡΠΈΠΌΠΈΠ·ΠΈΡΠΎΠ²Π°Π½ Π΄Π»Ρ ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΎΠΉ ESP32: ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΡΠ°Π±ΠΎΡΠ°ΡΡ Π² Π΄Π²ΡΡ ΡΠ΅ΠΆΠΈΠΌΠ°Ρ (ΠΎΠΏΡΠΎΡ 6 ΠΈΠ»ΠΈ 13 ΠΏΠΈΠ½ΠΎΠ²) Π² ΡΠ²ΡΠ·ΠΈ Ρ ΠΎΠ³ΡΠ°Π½ΠΈΡΠ΅Π½ΠΈΡΠΌΠΈ ΠΏΠ»Π°ΡΡΠΎΡΠΌΡ.
ΠΠΎΠ΄ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ Ρ Π»ΡΠ³ΠΊΠΎΡΡΡΡ ΠΈΠ·ΠΌΠ΅Π½ΡΠ½ ΠΏΠΎΠ΄ Π΄ΡΡΠ³ΠΈΠ΅ ΠΏΠ»Π°ΡΡΠΎΡΠΌΡ (ESP32-S2, ESP32-C3), ΠΏΠ΅ΡΠ΅Π΄Π°Π²Π°ΡΡ ΠΊΠ°ΠΊΠΈΠ΅-ΡΠΎ Π΄ΡΡΠ³ΠΈΠ΅ Π΄Π°Π½Π½ΡΠ΅ (Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ ΠΏΠΎΠΊΠ°Π·Π°ΡΠ΅Π»ΠΈ Ρ ΡΠΈΡΡΠΎΠ²ΡΡ ΠΏΠΈΠ½ΠΎΠ² ΠΈΠ»ΠΈ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΡΠ½Π½ΡΡ ΡΠ΅Π½ΡΠΎΡΠΎΠ²).
ΠΡΠΎΠ΅ΠΊΡ ΡΠΎΠ·Π΄Π°Π½ Π² PlatformIO, Π΄Π»Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ Π² Arduino IDE ΠΏΡΠΈΠ΄ΡΡΡΡ Π·Π°Π³ΡΡΠ·ΠΈΡΡ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΡ https://github.com/OttoWinter/pubsubclient. ΠΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ½Π°Π΄ΠΎΠ±ΡΡΡΡ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΡΠ΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ Π² ΡΠ²ΡΠ·ΠΈ Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ ΠΊΠ»Π°ΡΡΠΎΠ² Π²ΠΌΠ΅ΡΡΠΎ ΠΎΠ±ΡΡΠ½ΡΡ .ino ΡΠ°ΠΉΠ»ΠΎΠ².