• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Serial communications python library for ESP8266

Q&A Forum › Category: ESP8266 › Serial communications python library for ESP8266
0 Vote Up Vote Down
Enzo Pontone asked 5 years ago

Hi,
I need to send/receive small files (a few hundreds bytes at most) by serial interface with another device. Is there any python library to do this easily?
Thanks.

Question Tags: serial python
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
To read bytes by serial you can use the UART class: https://docs.micropython.org/en/latest/library/machine.UART.html
However, I’m not sure if it is suitable for your application.
Regards,
Sara

0 Vote Up Vote Down
Enzo Pontone answered 5 years ago

Hi Sara,
I saw it but they say “Availability: WiPy”: I have a node MCU 8266.
It seems strange to me that noone needed such a basic function and no general purpose serial com library exists.
Have a nice day.
Enzo

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Yes, it says WiPy, but if you try to import the UART module with the ESP8266, it imports successfully and creates a UART object.
So, I guess it works.
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.