Skip to content

Connect two esp32 via UART #1180

Answered by phoddie
salarizadi asked this question in Q&A
Jul 24, 2023 · 6 comments · 25 replies
Discussion options

You must be logged in to vote

You are using pins 16 & 17. The default for esp32/nodemcu is 1 for transmit and 3 for receive in device.io.Serial (taken from here). You can see that in the xsbug. As noted above you should set the receive and transmit properties in the constructor options object for the pins you are using:

	let serial = new device.io.Serial({
		...device.Serial.default,
		transmit: 17,
		receive: 16,
		...etc

Replies: 6 comments 25 replies

Comment options

You must be logged in to vote
1 reply
@salarizadi
Comment options

Comment options

You must be logged in to vote
14 replies
@andycarle
Comment options

@salarizadi
Comment options

@andycarle
Comment options

@phoddie
Comment options

Answer selected by salarizadi
@salarizadi
Comment options

@salarizadi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@phoddie
Comment options

@salarizadi
Comment options

Comment options

You must be logged in to vote
3 replies
@salarizadi
Comment options

@salarizadi
Comment options

@phoddie
Comment options

Comment options

You must be logged in to vote
5 replies
@phoddie
Comment options

@salarizadi
Comment options

@phoddie
Comment options

@salarizadi
Comment options

@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants