I currently have my electric imp connected (through a level shifter circuit and USB to Serial Adapter) to my computer. I’m want to use goSerial (essentially, a terminal) to communicate to my Imp.
Using the code below, I can successfully write “Hello, World!” to goSerial. But my readSerial function does nothing even after entering text into goSerial…
// UART Communication Code
// function that reads data from Serial port
local b = hardware.uart1289.read();
if(b >= 0)
server.log(“no data to retrieve”);
// configure a pin pair for UART TX/RX
hardware.uart12.configure(38400, 8, PARITY_NONE, 1, NO_CTSRTS);
// Connect to server
imp.configure(“Serial RX”, , );
//Write hello world
Everyone has been so knowledgeable and helpful here!!