Connecting to the Web server
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Connecting to the Web server
by wizdaniel ·
Hi lhakim.
You have to modify {xx} command to HEXA code.
For example {1B} command means a hexa code of the ESC key function.
{0x0d}{0x0a} means carriage return and line feeds as known as ENTER key function.(\r\n)
So you can get the response from cloud server after typing ESC, carriage return, line feeds instead of {xx}.
You have written incorrect GET method.(GET api.thingspeak.com/update?key=F … field1=200 HTTP1.1\r\n)
If you want to connect and send queries to thingspeak.com, you can prefer the api note of thingspeak.com like the link below.
Thingspeak.com needs the string of information(POST ~~, api_key ~~, message ~~)
AND it have to be just sent as below rules.
client.print(“POST /update HTTP/1.1\n”);
client.print(“Host: api.thingspeak.com\n”);
client.print(“Connection: close\n”);
client.print(“X-THINGSPEAKAPIKEY: “+writeAPIKey+”\n”);
client.print(“Content-Type: application/x-www-form-urlencoded\n”);
client.print(“Content-Length: “);
client.print(tsData.length());
client.print(”\n\n”);
That source was included in the link below
[url]http://community.thingspeak.com/arduino/ThingSpeakClient.pde[/url]
Thanks.
RE: Connecting to the Web server
by lhakim ·
Hai wizdniel,
Thanks for the reply
I already manage to update the data to thinkspeak.
What I do is use serial.write in arduino to send hexa code to serial.Below is my test code