Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Servo WIZnetInterface mbed
Fork of My_Weatherforecast_WIZwiki-W7500 by
Revision 20:8d57b80e24aa, committed 2015-11-10
- Comitter:
- joon874
- Date:
- Tue Nov 10 11:13:34 2015 +0000
- Parent:
- 19:be84bee4118d
- Child:
- 21:52e70a564a2b
- Commit message:
- openweathermap.org api format changed
Changed in this revision
| WIZnetInterface.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/WIZnetInterface.lib Fri Aug 28 04:02:08 2015 +0000 +++ b/WIZnetInterface.lib Tue Nov 10 11:13:34 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#b727920ecc5d +http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#200e63e513a8
--- a/main.cpp Fri Aug 28 04:02:08 2015 +0000
+++ b/main.cpp Tue Nov 10 11:13:34 2015 +0000
@@ -36,8 +36,10 @@
sock.connect("api.openweathermap.org", 80);
/* weather */
- char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr HTTP/1.0\n\n";
- //char http_cmd[] = "GET /data/2.5/weather?q=London,uk HTTP/1.0\n\n";
+
+ //char http_cmd[] = "GET /data/2.5/weather?id=2172797 HTTP/1.0\n\n";
+ //char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr HTTP/1.0\n\n";
+ char http_cmd[] = "GET /data/2.5/weather?q=London,uk,&appid=2de143494c0b295cca9337e1e96b00e0 HTTP/1.0\r\n\r\n";
//char http_cmd[] = "GET /data/2.5/weather?q=Berlin,de HTTP/1.0\n\n";
sock.send_all(http_cmd, sizeof(http_cmd)-1);
