Moderators: grovkillen, Stuntteam, TD-er
-
ingoiot
- Normal user
- Posts: 83
- Joined: 15 Aug 2019, 22:09
#1
Post
by ingoiot » 24 Oct 2021, 21:52
hi,
has anyone a hint how to build the MQ135 plugin from the playground?
I copied the src folder and .ino files but this seems not to be enough.
Code: Select all
Compiling .pio/build/custom_ESP32_4M316k/src/ESPEasy_common.cpp.o
/home/i/Downloads/ESPEasy/src/__Plugin.ino: In function 'void PluginInit()':
/home/i/Downloads/ESPEasy/src/__Plugin.ino:31:12: warning: unused variable 'x' [-Wunused-variable]
uint32_t x = 0; // Used in ADDPLUGIN macro
^
Compiling .pio/build/custom_ESP32_4M316k/src/PluginStructs/P248_data_struct.cpp.o
In file included from src/PluginStructs/P248_data_struct.cpp:1:0:
src/PluginStructs/../PluginStructs/P248_data_struct.h:4:34: fatal error: ../../_Plugin_Helper.h: No such file or directory
compilation terminated.
*** [.pio/build/custom_ESP32_4M316k/src/PluginStructs/P248_data_struct.cpp.o] Error 1
============================================== [FAILED] Took 64.73 seconds ==============================================
-
Ath
- Normal user
- Posts: 3494
- Joined: 10 Jun 2018, 12:06
- Location: NL
#2
Post
by Ath » 24 Oct 2021, 21:59
MQ135 is P135 in the playground, why are you copying the P248_data_struct sources? Remove them and you should be able to compile.
-
ingoiot
- Normal user
- Posts: 83
- Joined: 15 Aug 2019, 22:09
#3
Post
by ingoiot » 24 Oct 2021, 22:25
i just copied the files over from playgraound and hit "build".
now i only copied the 135.ino file with this result:
Code: Select all
# warning "**** Using Settings from Custom.h File ***"
^
Compiling .pio/build/custom_ESP8266_4M1M/src/_Plugin_Helper.cpp.o
/home/i/Downloads/ESPEasy/src/_P135_MQ135.ino: In function 'boolean Plugin_135(byte, EventStruct*, String&)':
/home/i/Downloads/ESPEasy/src/_P135_MQ135.ino:231:37: error: 'SENSOR_TYPE_DUAL' was not declared in this scope
Device[deviceCount].VType = SENSOR_TYPE_DUAL;
^
*** [.pio/build/custom_ESP8266_4M1M/src/ESPEasy.ino.cpp.o] Error 1
============================================== [FAILED] Took 50.96 seconds ==============================================
Environment Status Duration
------------------- -------- ------------
custom_ESP8266_4M1M FAILED 00:00:50.961
========================================= 1 failed, 0 succeeded in 00:00:50.961 =========================================
The terminal process "platformio 'run', '--environment', 'custom_ESP8266_4M1M'" terminated with exit code: 1.
-
TD-er
- Core team member
- Posts: 8739
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
-
Contact:
#4
Post
by TD-er » 24 Oct 2021, 22:47
Should be:
Code: Select all
Device[deviceCount].VType = Sensor_VType::SENSOR_TYPE_DUAL;
-
ingoiot
- Normal user
- Posts: 83
- Joined: 15 Aug 2019, 22:09
#5
Post
by ingoiot » 24 Oct 2021, 23:56
i have no idea what this does but tnx, it builds.
i looks like its really a pretty beta plugin.
Who is online
Users browsing this forum: No registered users and 78 guests