Notifications
Clear all

Unable to compile this code, can anyone tell me why it is not working ?

22 Posts
5 Users
0 Likes
8,039 Views
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

Hello forum,

I have been trying to follow this example for the DHT22 with an UNO.

I can see others have had the same problems as I am getting now, in that it refuses to compile.

i have looked at the advice given here, but at the moment I fail to understand it. Could anyone please give me some suggestions what I might try to solve it?

 

thank you


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@graham410

Hello and welcome!

What errors are you encountering?  You don't give a lot of details, but I have worked with the DHT22 quite often and have found it quite easy to work with.

Can you provide further details? Or even the code you are trying.

SteveG


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

@codecage

hello and thank you for helping.

I have looked at the suggestions and follwed the advice about deleting and reinstalling the libraries..

and bingo, it compiled and uploaded.

many many thanks for the nadvice given here and your offer of help too..

one happy bunny here!


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

@codecage

Sincere apologies for the lack of detail I provided in my request for help. I will learn from it and improve hopefully.

 


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

When I saw suggestions of 'copy the error message' my first thought was....well...its there in one line on the screen....how wrong of me huh?

I tried it and found theres a whole mass of stuff in there.....

 


   
ReplyQuote
(@zeferby)
Member
Joined: 5 years ago
Posts: 355
 

@graham410

Yes the Arduino IDE can be misleading because it focuses on the last msg, but the first one(s) are usually the most important.

Also this option, from File/Preferences, can be very helpful :

image

 

 

Eric


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

@zeferby

thank you for the advice, I have now checked the boxes for verbose stuff in compilation and upload.

It's reassuring to know there's folks around who will help whan I'm stuck in a hole.

 


   
ReplyQuote
Page 2 / 2