-->
Page 3 of 3

Re: Has anyone got Serial.swap() to work?

PostPosted: Wed Nov 23, 2016 6:06 am
by Dhruv Acharya
Sorry martinayotte,
Thanks

Re: Has anyone got Serial.swap() to work?

PostPosted: Wed Nov 23, 2016 9:49 am
by martinayotte
I don't any clues to help you out !
But posting 7 or 8 times the same issue won't help either.

Re: Has anyone got Serial.swap() to work?

PostPosted: Thu Jan 05, 2017 2:48 pm
by GengusKahn
Hi there, is there a reason you are not using Software Serial on pins 12,13 for example, see this sketch I am using a GPRS/GSM (M590) Serial AT module......

https://github.com/EnvironmentMonitor/M590_SMS_Gateway/blob/master/M590_ESP8266_SecureWeb.ino

Re: Has anyone got Serial.swap() to work?

PostPosted: Wed Jan 18, 2017 10:05 pm
by glyndon
Calling Serial.swap() doesn't switch your code's attention between two separate ports, it switches the I/O lines of the primary port's UART (and, importantly, its buffers) between one set of external pins and another set of external pins. Activity on the pins to which it is not currently directed, will be unseen.