-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
By default the REPL interface at the ESP8266 is UART 0, which is connected by a UART/USB bridge to USB. Therefore you cannot use UART for the GPS receiver at the same time as REPL. Using Webrepl, you can switch the REPL interface to the WiFi connection and detach UART from the REPL. |
Beta Was this translation helpful? Give feedback.
By default the REPL interface at the ESP8266 is UART 0, which is connected by a UART/USB bridge to USB. Therefore you cannot use UART for the GPS receiver at the same time as REPL. Using Webrepl, you can switch the REPL interface to the WiFi connection and detach UART from the REPL.
See https://docs.micropython.org/en/latest/esp8266/quickref.html#uart-serial-bus and https://docs.micropython.org/en/latest/esp8266/quickref.html#webrepl-web-browser-interactive-prompt
Once you have detached REPL from UART using
os.duptern(None, 1)
you can use the UART 0 for GPS. If you need to print messages by UART, you could use UART(1) to send data,Note that the labels
D1
,D2
etc. of the Wemos D1 type boa…