Analog_ET

47 replies [Last post]
Obadah
Title: NooBot
Joined: 01/31/2014
Posts:
BotPoints: 3
User offline. Last seen 8 years 44 weeks ago.

How do I get access to use Analog_ET(); ?

It's undefined.

stephenmac7
Title: NooBot
Joined: 11/19/2013
Posts:
BotPoints: 29
User offline. Last seen 8 years 32 weeks ago.

You must update to the newest firmward (2.0.3) and use the correct case: analog_et , not Analog_ET

Flacon
Title: NooBot
Joined: 06/13/2012
Posts:
BotPoints: 12
User offline. Last seen 8 years 40 weeks ago.

I tried to do this the other day and using the correct syntax (analog_et(0)) I still got this error: main.cpp:16:22: error: 'analog_et' was not declared in this scope

I had to include kovan/analog.h in the file...
So basically add this to the includes at the top of the program:
#include <kovan/analog.h>

what's interesting is that to create a new Analog (c++) instance I didn't have to include kovan/analog.hpp. I haven't done much c/c++ work in general but it seems strange that one is included by default and other isn't. Might have to do with c++ being the default language of the Link libraries? Can anyone clarify that for me?

nzaman
Title: Software Engineer @ KIPR
Joined: 02/12/2014
Posts:
BotPoints: 12
User offline. Last seen 8 years 34 weeks ago.

analog.h is automatically included for C programs, and analog.hpp is automatically included for C++ programs. I assume you were using C++ since your filename is main.cpp, which is why the Analog class was found but the analog_et function was not.

Nafis Zaman

ted90
Title: NooBot
Joined: 04/07/2016
Posts:
BotPoints: 12
User offline. Last seen 6 years 34 weeks ago.

I found he was looking for, thanks for the post!

Kimstonerock
Title: NooBot
Joined: 02/22/2019
Posts:
BotPoints: 8
User offline. Last seen 3 years 41 weeks ago.

Thank you for posting such a great article!

colin56c
Title: NooBot
Joined: 04/06/2018
Posts:
BotPoints: 106
User offline. Last seen 3 years 18 weeks ago.

The Kroger company or simply Kroger is an American retailing company founded by Bernard Kroger in 1883 in Cincinnati, Ohio, United States.

www.mycfavisit.com |
www.krogerfeedback.com |
metro pcs bill pay

Isabel
Title: NooBot
Joined: 05/25/2021
Posts:
BotPoints: 66
User offline. Last seen 1 year 28 weeks ago.
Isabel
Title: NooBot
Joined: 05/25/2021
Posts:
BotPoints: 66
User offline. Last seen 1 year 28 weeks ago.
Isabel
Title: NooBot
Joined: 05/25/2021
Posts:
BotPoints: 66
User offline. Last seen 1 year 28 weeks ago.
Isabel
Title: NooBot
Joined: 05/25/2021
Posts:
BotPoints: 66
User offline. Last seen 1 year 28 weeks ago.

jmw