#include #include #include // Get Stock Quotes from Internet void getStocksFromInternet(String symbol) { // Get stock market data from www.alphavantage.co char server[] = "www.alphavantage.co"; payload = ""; String temp = "GET /query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=1min&apikey=HWHEHCWA5TBB7TM"; WiFiSSLClient client; //Serial.println("\nStarting connection to server..."); // if you get a connection, report back via serial: if (client.connect(server, 443)) { // Serial.println("Connected to server"); // Make a HTTP request: client.println(temp); client.println("Host: www.alphavantage.co"); client.println("Connection: close"); client.println(); } delay(500); // if there are incoming bytes available // from the server, read them and print them: while (client.available()) { char c = client.read(); payload += c; } Serial.print("Payload = "); Serial.println(payload); // No parse the long string and get our info out // if (payload.length() > 100) parse_it(payload); }