General area when it fits no where else

Moderator: Mmiscool

User avatar
By SukiYoon
#46366
forlotto wrote:
SukiYoon wrote:did anyone know why I get success upload and connection to thingspeak already...but still no data uploaded shows on my channel thingspeak?

i using wget

thanks...


If I recall correctly some users were having troubles with one of the newer builds and wget.

In order to truly diagnose your problem you will have to go public it is unfortunate but a must!

What is needed from you is the following:

- The version of espbasic that you are using
- Your code a complete copy and paste as it could be something very simply like a syntax error.

The syntax of some of the things have changed like timer code and a few other things you will need to post code a complete copy and paste of your code to be sure it isn't something that has changed.



Hi, Thanks for your answer. However i still can't solve it. As you mentioned before, I already make my thingSpeak channel in Public.
The following is my code:

int main()
{
//cout << "Hello BeagleBone Black!\n\n";
char waterLevel[60], flowRate[]="";
int i;

cout << "Hello Internet" << endl;

socket();
for(i=0;i<3;i++)
{

separateDataIntoMultipleStr(waterLevel, flowRate );
printf("Preparing sending to ThingSpeak...");

puts(waterLevel);
puts(flowRate);

system("wget http://api.thingspeak.com/update?key=IP ... 2=flowRate");
sleep(20);
}

THE OUTPUT IS LIKE BELOW.....

root@arm:/home/ubuntu/Desktop# ./Beagle
Hello Internet
Setting up the structs...
Creating a socket...
Connect()ing...
send()ing message...
Waiting to receive data...
1000 bytes received :
HTTP/1.1 200 OK
Date: Thu, 28 Apr 2016 04:59:52 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See https://www.google.com/support/accounts ... 1657?hl=en for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: NID=79=Y3WOnXyXG9Aq0m3X7mJLbyhvddvBVqrC2MOw8DnJdIgbMZTir-1Uw5xQD93rmm_Ob7RKg5reoBOu3t1-_iQEBrhbXreCdXddxIEiICegUOROOw-hGY4fgvqqcEZxbVC2bpjAte9bxzeJpn8; expires=Fri, 28-Oct-2016 04:59:52 GMT; path=/; domain=.google.com; HttpOnly
Accept-Ranges: none
Vary: Accept-Encoding
Transfer-Encoding: chunked

8000
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for." name="description"><meta content="noodp" name="robots"><meta content="text/htm
Receiving complete. Closing socket...
Reading level and flow from file
level = 4.73 121.72

Preparing sending to ThingSpeak...4.73 121.72


--2016-04-28 12:59:52-- http://api.thingspeak.com/update?key=IPB56DSWP8AQ5Y5I
Resolving api.thingspeak.com (api.thingspeak.com)... 54.164.214.198, 54.88.155.198
Connecting to api.thingspeak.com (api.thingspeak.com)|54.164.214.198|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2 [text/html]
Saving to: ‘update?key=IPB56DSWP8AQ5Y5I.6’

100%[======================================================================================================>] 2 --.-K/s in 0.001s

2016-04-28 12:59:53 (2.08 KB/s) - ‘update?key=IPB56DSWP8AQ5Y5I.6’ saved [2/2]

Reading level and flow from file
level = 4.73 121.72

Preparing sending to ThingSpeak...4.73 121.72


--2016-04-28 13:00:12-- http://api.thingspeak.com/update?key=IPB56DSWP8AQ5Y5I
Resolving api.thingspeak.com (api.thingspeak.com)... 54.164.214.198, 54.88.155.198
Connecting to api.thingspeak.com (api.thingspeak.com)|54.164.214.198|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2 [text/html]
Saving to: ‘update?key=IPB56DSWP8AQ5Y5I.7’

100%[======================================================================================================>] 2 --.-K/s in 0s

2016-04-28 13:00:13 (9.84 KB/s) - ‘update?key=IPB56DSWP8AQ5Y5I.7’ saved [2/2]

Reading level and flow from file
level = 4.73 121.72

Preparing sending to ThingSpeak...4.73 121.72


--2016-04-28 13:00:32-- http://api.thingspeak.com/update?key=IPB56DSWP8AQ5Y5I
Resolving api.thingspeak.com (api.thingspeak.com)... 54.164.214.198, 54.88.155.198
Connecting to api.thingspeak.com (api.thingspeak.com)|54.164.214.198|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2 [text/html]
Saving to: ‘update?key=IPB56DSWP8AQ5Y5I.8’

100%[======================================================================================================>] 2 --.-K/s in 0s

2016-04-28 13:00:33 (10.1 KB/s) - ‘update?key=IPB56DSWP8AQ5Y5I.8’ saved [2/2]

root@arm:/home/ubuntu/Desktop#