These are chat archives for SmingHub/Sming

5th
Feb 2017
slaff
@slaff
Feb 05 2017 20:30
@vjacob Make sure to get the latest version from develop. Then do the following:
// Make sure to `begin` the serial session
 Serial.begin(SERIAL_BAUD_RATE); // 115200 by default
// ONLY then you can use GPIO-13 and GPIO-15 with the command below
Serial.swap()
// make sure to have the following connections
// ESP GPIO-13 RX - > connect with TX on your serial adapter
// ESP GPIO-15 TX -> connect with RX on you serial adapter
// ESP GND -> connect with GND on your serial adapter
An easy test will be to get the Basic_Serial example and add Serial.swap() right that line: https://github.com/SmingHub/Sming/blob/develop/samples/Basic_Serial/app/application.cpp#L74
I have tested this on two ESP devices and it works like charm for me.
@vjacob By the way our documentation comments (https://github.com/SmingHub/Sming/blob/develop/Sming/SmingCore/HardwareSerial.h#L137) and examples are quite useful. Read them the next time you have some doubts.