ESP8266: RTC vs HTTP request - Battery Consumption

0 votes
Let’s say, I used deep sleep and once awake, the wireless has to set up to send some data to my cloud storage, but it needs to happen just before I get the time with the NTPClient library. Then again, I might just save some battery if I use a RTC. So, is using NTPClient library and making an HTTP request to get the time more efficient or is it using a RTC and reading the time from it. TIA!
Jan 23 in IoT (Internet of Things) by Bharani
• 4,550 points
26 views

1 answer to this question.

0 votes
A project I work on uses both RTC and NTP running on battery and using deep sleep and RTC seems to be the better option for battery saving and reliability.

I’m using RTC with i2c protocol and a clear advantage is that you’ll get the time you need, tens of ms as compared to using NTP that requires at least 1 or 2 seconds depending on the library being used. Also, issues like connection problems or such seem impossible when using the RTC Module. While wifi/internet/ntp connection fails at times, the RTC module has never once failed during my tests. Conveniently, you even can program the RTC module offline and mount in the circuit after that as it includes a back-up battery, which claims a guarantee duration of a couple of years. I use the date and time coming from the RTC module, which I calibrate using the NTP protocol only once a week.

However, many IoT cloud platforms only accept data that use the timestamp of the receiving stream rather than the one provided by the device.
answered Jan 23 by DataKing99
• 8,100 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

NodeMCU HTTP : How to use HTTPS post request?

Your firmware might not have SSL/TLS enabled. ...READ MORE

answered Feb 11 in IoT (Internet of Things) by Shubham
• 13,270 points
157 views
0 votes
1 answer

Faster communication between two ESP8266 in client-server setup

Try following. Server loop void loop() { // ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
784 views
0 votes
1 answer

IoT request response protocol

Based on your requirement of a light ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
211 views
0 votes
1 answer

MQTT pubish is slow to send with ESP8266 & NodeMCU

I think you're almost correct and on ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
607 views
0 votes
1 answer
0 votes
1 answer

Send CoAP requests using Python

You can use a library like CoAPython ...READ MORE

answered Oct 15, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
62 views
0 votes
1 answer

Intel Galileo Vs. Intel Edison?

Intel Galileo Key Features: Type: Single-Board Computer CPU: Intel Quark ...READ MORE

answered Aug 20, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
328 views