_P096_Vito Cant compile

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
S-Stoerung
Normal 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: 36
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
Normal 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests