File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
micropython-ntpclient
2
2
=====================
3
3
4
- A uasyncio based NTP client for ESP32/ESP8266 boards running micropython.
4
+ A uasyncio based NTP client for ESP32 boards running micropython.
5
5
6
6
** At this moment this code only works on boards with a custom build
7
7
micropython firmware.**
8
8
9
9
Please go to https://forum.micropython.org/viewtopic.php?f=15&t=7567
10
10
for discussion and questions.
11
11
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
14
14
included patch _ esp32_adjtime.diff_ and build a custom micropython image.**
15
15
16
16
~~ Required commit to be cherry-picked for ESP32:
17
17
https://github.com/wieck/micropython/commit/cd80a9aba99a68af7e295067fa7d35383ccef640 ~~
18
18
19
- ~~ Required commit to be cherry-picked for ESP8266:
20
- https://github.com/wieck/micropython/commit/97e58630e74b024b58aeb5964d104973b361cad5 ~~
21
-
22
19
23
20
Installation and testing
24
21
------------------------
Original file line number Diff line number Diff line change 2
2
3
3
if platform == 'esp32' :
4
4
from .ntpclient_esp32 import *
5
- elif platform == 'esp8266' :
6
- from .ntpclient_esp8266 import *
7
5
else :
8
6
raise Exception ("unsupported platform '{}'" .format (platform ))
Original file line number Diff line number Diff line change 1
1
# ntpclient_esp8266.py
2
2
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
+
3
9
import os
4
10
import usocket as socket
5
11
import ustruct as struct
You can’t perform that action at this time.
0 commit comments