Problem verifying xobxob_blink_Ethernet example

For Arduino users on XOBXOB
Wpsinc
Posts: 3
Joined: Sat Aug 10, 2013 3:31 am

Problem verifying xobxob_blink_Ethernet example

Postby Wpsinc » Sat Aug 10, 2013 3:42 am

Hi, I'm having an issue when I load the xobxob_Blink_Ethernet example. The verify hits a glitch:

//create XOBXOB object (for Ethernet shield)
XOBXOB_ Ethernet XOB (Mac,APIKey);

The compiler notes an error 'XOBXOB_Ethernet' does not name a type

Any suggestions?

Thanks
Paul

xobxob
Posts: 18
Joined: Sat Jul 27, 2013 8:41 am

Re: Problem verifying xobxob_blink_Ethernet example

Postby xobxob » Sat Aug 10, 2013 8:27 am

Hi Paul,

Can you tell me how you installed the XOBXOB_Ethernet library? (the error suggests maybe the compiler isn't finding library properly)

Bob

Wpsinc
Posts: 3
Joined: Sat Aug 10, 2013 3:31 am

Re: Problem verifying xobxob_blink_Ethernet example

Postby Wpsinc » Sat Aug 10, 2013 6:48 pm

I'm using IDE 1.0.5 so Sketch>Import Library>add Library, after restarting it does show the XOBXOB examples and the XOB library appears in the lib menu

Wpsinc
Posts: 3
Joined: Sat Aug 10, 2013 3:31 am

Re: Problem verifying xobxob_blink_Ethernet example

Postby Wpsinc » Sat Aug 10, 2013 7:23 pm

tried reimporting the library, no change when I attempt to verify.. :?

XOBXOB_Blink_Ethernet:52: error: 'XOBXOB_Ethernet' does not name a type
XOBXOB_Blink_Ethernet.ino: In function 'void setup()':
XOBXOB_Blink_Ethernet:65: error: 'XOB' was not declared in this scope
XOBXOB_Blink_Ethernet.ino: In function 'void loop()':
XOBXOB_Blink_Ethernet:76: error: 'XOB' was not declared in this scope
XOBXOB_Blink_Ethernet:82: error: 'XOB' was not declared in this scope
XOBXOB_Blink_Ethernet:91: error: 'XOB' was not declared in this scope

xobxob
Posts: 18
Joined: Sat Jul 27, 2013 8:41 am

Re: Problem verifying xobxob_blink_Ethernet example

Postby xobxob » Sat Aug 10, 2013 8:12 pm

OK. Here's something to check. If you added your MAC address and APIKey to the sketch, verify that you put quotes in the right place. And that the lines contain semi-colons at the end.

One way to test the compiler is to create a new sketch from the blink example without any modification. It should compile, but it won't actually run. Let me know if that makes any difference.

xobxob
Posts: 18
Joined: Sat Jul 27, 2013 8:41 am

Re: Problem verifying xobxob_blink_Ethernet example

Postby xobxob » Sat Aug 17, 2013 5:12 am

I may have a solution. Each of the three XOBXOB libraries should be located in:

documents > arduino > libraries > XOBXOB_Connector
documents > arduino > libraries > XOBXOB_Ethernet
documents > arduino > libraries > XOBXOB_Wifly

A problem arises when the libraries are placed inside another directory, e.g.

documents > arduino > libraries > XOBXOB_Arduino > XOBXOB_Connector
Etc.

The IDE shows the libraries and examples in the menu, but does not include files properly when compiling, resulting in the compile error.

Hope this helps.


Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest