Home Page Forums Tinylab Share your TinyLab projects Reply To: Share your TinyLab projects



Yes, for CIPCLOSE, put this code in function getStockQuote() right before the line “return outputString;”

sendData(“AT+CIPCLOSE\r\n”, 2000, DEBUG); // Close server connection


and take these two lines of CIPSTART code out of setup() and move them to the start of getStockQuote(), before the “// Construct our HTTP call” line:

// Open TCP connection to the host:
sendData(“AT+CIPSTART=\”TCP\”,\”” + host + “\”,” + httpPort + “\r\n”, 15000, DEBUG);


I tested this out and it worked for me. I could make multiple stock queries successfully. I’ll update my GitHub with these changes.