Search found 34 matches

by cemox
Thu Oct 11, 2018 11:55 am
Forum: ESP8266 boards
Topic: sending hex via UART
Replies: 7
Views: 11122

sending hex via UART

hi, I am trying to send hex data to a device from my nodemcu board in the "\xff\x00" format. Below code perfectly produces the hex string without any problem: data = [0xff, 0xff, 0xfd, 0x00] print(bytes(data)) it sends b'\xff\xff\xfd\x00' which is understandable by the receiving party. But, when the...
by cemox
Wed Oct 10, 2018 4:27 pm
Forum: ESP8266 boards
Topic: accessing uart0 on nodemcu board
Replies: 23
Views: 16394

Re: accessing uart0 on nodemcu board -SOLVED

Thank you Robert, people like you make these forums great, I mean it . I do appreciate your efforts.

It should have been little easier to make use of uart with esp8266 based boards, I believe the fantastic developers of micropython will achieve that.

Cheers
by cemox
Tue Oct 09, 2018 7:11 am
Forum: ESP8266 boards
Topic: accessing uart0 on nodemcu board
Replies: 23
Views: 16394

Re: accessing uart0 on nodemcu board

[quote=Roberthh post_id=30848 time=1539028096 user_id=601] Even if REPL is not used when running code, uart0 ist not available as such, unless you call uos.dupterm(None) before instantiating it, to make it available as uart again. Without that, you can read the data on uart0 rx with sys.stdin.read()...
by cemox
Mon Oct 08, 2018 5:50 pm
Forum: ESP8266 boards
Topic: accessing uart0 on nodemcu board
Replies: 23
Views: 16394

accessing uart0 on nodemcu board

hi, knowing that uart0 is dedicated to repl and uart1 is only capable of sending data (no rx), I searched the forum to find a solution. it is said that repl is not active when the code is run from main.py, I tried that, did not work. I also tried to disable repl by uos.dupterm(None), no luck. In the...