ThingHTTP using ESP8266 | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
ThingHTTP using ESP8266
Avatar
RytisBe
New Member
Forum Posts: 2
sp_UserOfflineSmall Offline
1
July 29, 2017 - 5:03 am
sp_Permalink sp_Print

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: jacktheripper125
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

bbruno22

pudderz

Utkya

Poornak26

LindasHed

reddysiva

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee