I cannot even find 20% of the parts on fritzing. pin 5 is connected to a sparkfun nano power timer done pin and the 4 pin is connected to a ds18b20 onewire temp sensor. I am using a lolin d1 mini.
the code only has to run once since the chip gets turned off and on again.
every 30 minutes is gets turned on and once it is finished publishing to mqtt it sends a signal to the power timer to turn it off. btw I have about 2.5 years experience in arduino code.
the code only has to run once since the chip gets turned off and on again.
every 30 minutes is gets turned on and once it is finished publishing to mqtt it sends a signal to the power timer to turn it off. btw I have about 2.5 years experience in arduino code.
I've noted how everybody is just dying to know what is not happening that you think should, where you note everything about this "my code won't work" complaint, details about that stuff.
How about filling in the blanks?
yes, yes and yes. it connects but gets stuck at the publishing part.
btw I am in the middle of upgrading to adafruit huzzah32 with proto featherwing because of the IoT
features. I do not have the original setup anymore but if the code works I can convert it to esp32.
Thanks
Sorry about that. I just do not know what is wrong. it worked very well before I added the
> Buffer, "The date is %s the time is %s:%s:%s and the temp is %3.0f",timeClient.getDay(), timeClient.getHours(), timeClient.getMinutes(), timeClient.getSeconds(), penetrative_temp
int day = timeClient.getDay();
int hh = timeClient.getHours();
int mm = timeClient.getMinutes();
int ss = timeClient.getSeconds();
sprintf(Buffer, "The date is %s the time is %s:%s:%s and the temp is %3.0f",day, hh, mm, ss, penetrative_temp);
sprintf(Buffer, "The date is %d the time is %d:%d:%d and the temp is %3.0f",day, hh, mm, ss, penetrative_temp);
Mine got "lost".
I used/use the aentinger library on/from github.
I'm not sure if the function calls are OK with sprintf.
I've used the NTPClient.h in a clock project, but with the variables
outside the sprintf().