Skip to content

Commit e466979

Browse files
committed
Disable ESP8266 support
Without a working RTC slew functionality the ESP8266 support makes no sense.
1 parent 134c9c0 commit e466979

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
micropython-ntpclient
22
=====================
33

4-
A uasyncio based NTP client for ESP32/ESP8266 boards running micropython.
4+
A uasyncio based NTP client for ESP32 boards running micropython.
55

66
**At this moment this code only works on boards with a custom build
77
micropython firmware.**
88

99
Please go to https://forum.micropython.org/viewtopic.php?f=15&t=7567
1010
for discussion and questions.
1111

12-
**The following commits were never accepted by the upstream project.
13-
In order to make the utime.adjtime() available please apply the
12+
**The following commit was never accepted by the upstream project.
13+
In order to make the utime.adjtime() function available please apply the
1414
included patch _esp32_adjtime.diff_ and build a custom micropython image.**
1515

1616
~~Required commit to be cherry-picked for ESP32:
1717
https://github.com/wieck/micropython/commit/cd80a9aba99a68af7e295067fa7d35383ccef640~~
1818

19-
~~Required commit to be cherry-picked for ESP8266:
20-
https://github.com/wieck/micropython/commit/97e58630e74b024b58aeb5964d104973b361cad5~~
21-
2219

2320
Installation and testing
2421
------------------------

ntpclient/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
if platform == 'esp32':
44
from .ntpclient_esp32 import *
5-
elif platform == 'esp8266':
6-
from .ntpclient_esp8266 import *
75
else:
86
raise Exception("unsupported platform '{}'".format(platform))

ntpclient/ntpclient_esp8266.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ntpclient_esp8266.py
22

3+
########################################################################
4+
# WARNING: This part of the ntpclient package is not maintained at this
5+
# point. The original functionality to slew the ESP8266 RTC was not
6+
# working reliable.
7+
########################################################################
8+
39
import os
410
import usocket as socket
511
import ustruct as struct

0 commit comments

Comments
 (0)