Page 1 of 1

_P096_Vito Cant compile

Posted: 12 Nov 2019, 09:36
by S-Stoerung
Hello, my name is Pascal and i am a beginner here. I use Arduino IDE due to some Problems with Atom/Platformio.

I will be deeply grateful for some hints in order to solve my problem.

I want to compile ESPeasy together with the _P096_Vito Plugin. For that i added the lib (OptolinkP300.hpp / Datapoint.hpp) , which is described in the Plugin.

During compiling the error message is :

D:\........\ESPEasy-mega-20191028\source\ESPEasy\_P096_Vito.ino: In function 'boolean Plugin_096(byte, EventStruct*, String&)':

_P096_Vito:321: error: 'TX' was not declared in this scope

pinMode(TX,INPUT);


Does anybody know what could be the problem?

I used "ESPEasy-mega-20191028"

Many thanks.

Re: _P096_Vito Cant compile

Posted: 13 Nov 2019, 11:02
by Flying Domotic
You probably have to define TX to the pin number associated with your serial transmit somewhere in the header.

Without checking (so I may be wrong), this could be due to the fact that RX, TX and probably other pins are defined by the PlatformIO environment, while they're not by Arduino IDE.

It may be more efficient trying to fix the problem(s) with PlatformIO to use it, instead of Arduino IDE (I known you may have issues switching from one to the other, I had too).

Re: _P096_Vito Cant compile

Posted: 15 Nov 2019, 11:44
by S-Stoerung
I will try it out.

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 20:10
by Conner
Hello, i also look for a way to control my heating. Is there anybody who has already compiled a version with the plugin?
regards

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 20:32
by Ath
The _P096_Vito.ino source has not been updated in a long time, and most likely won't compile with current ESPEasy (Mega) sources.
You are the first in a long time requesting this, so I can only assume there isn't much request for this plugin.

Looking at the code quickly, it will take quite some effort to make it work again. I can put it on my TODO list, but it won't have an ETA, as I'm already working on quite a few projects in parallel.

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 20:57
by Conner
10x for the answer.
I use the ESP8266 togehter with EasyESP FW and the IoBroker to make my House Smart. At the moment i run several Devices with the FW for Fingerprints and different Sensors.
Until this there was never a need for me to change anything in the Programming of the FW. Looks like now i should give it a try.
Visula Studio Code is installed and I started the first steps with PlatformIO to create a custom build - so far this works.
Now I start to have a view on the code and read the doc's.
.. we will se if i can go forward :-)

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 21:03
by Ath
I assume you have found this documentation that I put quite some time into? https://espeasy.readthedocs.io/en/lates ... on-espeasy

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 21:09
by Conner
Yes - this docu i used to set it up and i use to understand all the files and so on :-)

Re: _P096_Vito Cant compile

Posted: 15 Jul 2022, 21:14
by Ath
Be aware that Plugin ID P096/96 already is in use (for the eInk displays plugin), if you want this plugin to be included in the regular ESPEasy builds, it will need a new ID, that you can request here: https://github.com/letscontrolit/ESPEasy/issues/3839 (Next available Plugin ID is P140/140).

Re: _P096_Vito Cant compile

Posted: 18 Jul 2022, 20:00
by Ath
Conner wrote: 15 Jul 2022, 21:09 Yes - this docu i used to set it up and i use to understand all the files and so on :-)
@Conner, are you working on getting that plugin migrated from ESPEasyPlayGround to ESPEasy mega branch? If so I'll reserve Plugin ID 140 for you (have some more ID's to reserve, but want to avoid messing your numbers up ;))

Re: _P096_Vito Cant compile

Posted: 18 Jul 2022, 21:09
by Conner
Hello, Yes. I'm working on the Project. At the Weeknend I finished the Hardware and I started communicating with the Heating. So far this works with simple Putty. Next I have to decide if i can do the job with the plugin or it is even easier to use the serial communication of rules. Let me play a few more days then i will send you the way i go.
cu