ThingHTTP to Serial Monitor | ESP8266 Wi-Fi Module | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
ThingHTTP to Serial Monitor
No permission to create posts
July 27, 2017
8:52 am
Avatar
RytisBe
New Member
Members
Forum Posts: 2
Member Since:
July 27, 2017
sp_UserOfflineSmall Offline

Hello everyone, i am fairly new to this community. I am currently working on ThingHTTP with ESP8266 nodeMCU. My little project should read in total subscribers from youtube channel and lets say for now print them out to the serial monitor. I have created a new ThingHTTP and filled in URL, parsing string and method. After the link was generated i clicked into it and it seems to be working just fine, while displaying only the total number of subscribers. Now, the problem is the code itself.. i don't know how to properly call the function and how it should be printed out to the serial. I would really appreciate some help here.

 

There is my code so far : 

 
#include
const char* ssid = "ssidName";
const char* password = "password";
const char* host = "api.things.com";
const char URL_youtube[] = "GET https://api.thingspeak.com/apps/thinghttp/send_request?api_key=XXXXXXXXXXXXXXX HTTP/1.0";

void setup() {

Serial.begin(115200);
delay(10);

WiFi.begin(ssid, password);

Serial.println();
Serial.println();
Serial.print("\tConnecting to: ");
Serial.println(ssid);

while (WiFi.status() != WL_CONNECTED) {

delay(100);
Serial.print(".");

}

Serial.println("");
Serial.println("\tWiFi Connected");

}

void loop() {

getYoutube();
delay(15000);

}

 

void getYoutube() {

if (WiFi.status() == WL_CONNECTED) {
// function goes here
}
}

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457