_P096_Vito Cant compile

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
S-Stoerung
New user
Posts: 2
Joined: 12 Nov 2019, 09:22

_P096_Vito Cant compile

#1 Post by S-Stoerung » 12 Nov 2019, 09:36

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.

Flying Domotic
Normal user
Posts: 37
Joined: 27 Aug 2019, 23:57

Re: _P096_Vito Cant compile

#2 Post by Flying Domotic » 13 Nov 2019, 11:02

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).

S-Stoerung
New user
Posts: 2
Joined: 12 Nov 2019, 09:22

Re: _P096_Vito Cant compile

#3 Post by S-Stoerung » 15 Nov 2019, 11:44

I will try it out.

Conner
New user
Posts: 8
Joined: 15 Jul 2022, 19:58

Re: _P096_Vito Cant compile

#4 Post by Conner » 15 Jul 2022, 20:10

Hello, i also look for a way to control my heating. Is there anybody who has already compiled a version with the plugin?
regards

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: _P096_Vito Cant compile

#5 Post by Ath » 15 Jul 2022, 20:32

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.
/Ton (PayPal.me)

Conner
New user
Posts: 8
Joined: 15 Jul 2022, 19:58

Re: _P096_Vito Cant compile

#6 Post by Conner » 15 Jul 2022, 20:57

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 :-)

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: _P096_Vito Cant compile

#7 Post by Ath » 15 Jul 2022, 21:03

I assume you have found this documentation that I put quite some time into? https://espeasy.readthedocs.io/en/lates ... on-espeasy
/Ton (PayPal.me)

Conner
New user
Posts: 8
Joined: 15 Jul 2022, 19:58

Re: _P096_Vito Cant compile

#8 Post by Conner » 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 :-)

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: _P096_Vito Cant compile

#9 Post by Ath » 15 Jul 2022, 21:14

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).
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: _P096_Vito Cant compile

#10 Post by Ath » 18 Jul 2022, 20:00

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 ;))
/Ton (PayPal.me)

Conner
New user
Posts: 8
Joined: 15 Jul 2022, 19:58

Re: _P096_Vito Cant compile

#11 Post by Conner » 18 Jul 2022, 21:09

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

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests