SMS Pet Food Dish Compile Errors

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

SMS Pet Food Dish Compile Errors

Post by Barry914 »

I am missing something here. I downloaded the sketch from the link on https://learn.adafruit.com/sms-texting- ... h/software

Code: Select all

SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::rol32(unsigned long, unsigned char)':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:28: multiple definition of `Sha1Class::rol32(unsigned long, unsigned char)'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:28: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::hashBlock()':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:32: multiple definition of `Sha1Class::hashBlock()'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:32: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::addUncounted(unsigned char)':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:69: multiple definition of `Sha1Class::addUncounted(unsigned char)'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:69: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::write(unsigned char)':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:79: multiple definition of `Sha1Class::write(unsigned char)'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:79: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::pad()':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:84: multiple definition of `Sha1Class::pad()'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:84: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::result()':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:103: multiple definition of `Sha1Class::result()'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:103: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::rol32(unsigned long, unsigned char)':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:28: multiple definition of `Sha1'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:28: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::init()':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:22: multiple definition of `Sha1Class::init()'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:22: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::resultHmac()':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:144: multiple definition of `Sha1Class::resultHmac()'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:144: first defined here
SMS_Pet_Food_Dish\sha1.cpp.o: In function `Sha1Class::initHmac(unsigned char const*, int)':
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/sha1.cpp:125: multiple definition of `Sha1Class::initHmac(unsigned char const*, int)'
sha1.cpp.o:C:\Users\Barry\AppData\Local\Temp\build7806013755045170985.tmp/sha1.cpp:125: first defined here

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: SMS Pet Food Dish Compile Errors

Post by Franklin97355 »

Not sure what your problem is. I downloaded the sketch and only got one error " SMS_Pet_Food_Dish:111: error: could not convert 'cc3000.Adafruit_CC3000::connectToAP(((const char*)"myNetwork"), ((const char*)"myPassword"), 3u)' to 'bool'" and since I set none of the variables I would expect something to go wrong. You might try re-downloading the libraries and the sketch and try again.

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

Installed new versions of the libs and sketch, same errors. I can compile the xively sketch without errors.

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

bump!

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: SMS Pet Food Dish Compile Errors

Post by Franklin97355 »

why do you have this
C:\Users\Barry\Documents\Arduino\libraries\SMS_Pet_Food_Dish/
in your libraries folder?

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

The most likely explanation is I was careless or otherwise asleep at the wheel when I moved the downloaded files. Whatever the reason, I thank you for spotting this. Compiles fine for Uno, but is too large for a Micro. Does that sound about right?

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: SMS Pet Food Dish Compile Errors

Post by Franklin97355 »

Now that you have it working you might be able to pare the library code down to a point it would fit. Or you could use a small arduino like the nano.

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

I'm thinking of making an SMS Mailbox. I've added a tilt switch https://www.adafruit.com/product/173 to my old garage door opener transmitter and I mounted to the inside of my mailbox door. The receiver is in my house and is connected to a beeper. I'm planning to add a Micro and a CC3000 to send a text when the Postal Carrier AKA mailman delivers my latest Adafruit order, or whatever super important snail mail I'm waiting for ;) I've got that code to easily fit on the Micro and I've set up an Amazon SNS account, but so far it's just a thought experiment.
Attachments
DSC_0001.JPG
DSC_0001.JPG (128.02 KiB) Viewed 310 times
DSC_0002.JPG
DSC_0002.JPG (99.29 KiB) Viewed 310 times
DSC_0006.JPG
DSC_0006.JPG (132.18 KiB) Viewed 310 times

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: SMS Pet Food Dish Compile Errors

Post by Franklin97355 »

Nice use of a pencil sharpener!

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

Thanks. That's engineered to absorb the mechanical stress of pressing the latching relay reset button so the clip leads don't all pop off at once.

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: SMS Pet Food Dish Compile Errors

Post by Barry914 »

My SMS Mailbox is no longer an idea, it's in beta. Pretty much the SMS Pet Food Dish sketch except it just looks for a contact closure.
Attachments
DSC_0004.JPG
DSC_0004.JPG (121.2 KiB) Viewed 252 times
DSC_0001 (2).JPG
DSC_0001 (2).JPG (117.47 KiB) Viewed 252 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”