User Tools

Site Tools


lokos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lokos [2019/05/30 07:35]
2480
lokos [2019/10/23 21:11] (current)
Line 53: Line 53:
    
 int main() { int main() {
-    printf("​Hello World!"​);​+    printf("​Hello World!\n");
 } }
  </​code>​  </​code>​
Line 359: Line 359:
         led = 0;         led = 0;
     else     else
-         led = 1; +        ​led = 1;
-     +
 } }
  
Line 410: Line 408:
     ​     ​
 } }
- 
- 
- 
  
 int main() { int main() {
Line 509: Line 504:
         // By default the body is automatically parsed and stored in a buffer, this is memory heavy.         // By default the body is automatically parsed and stored in a buffer, this is memory heavy.
         // To receive chunked response, pass in a callback as last parameter to the constructor.         // To receive chunked response, pass in a callback as last parameter to the constructor.
 +        ​
 +        HttpRequest* get_req = new HttpRequest(network,​ HTTP_GET, "​http://​api.openweathermap.org/​data/​2.5/​weather?​q=Ioannina&​units=metric&​APPID=3ff29328f7c661abef83a312168bc559"​);​
         ​         ​
         HttpResponse* get_res = get_req->​send();​         HttpResponse* get_res = get_req->​send();​
Line 528: Line 525:
   </​code>​   </​code>​
  
 +===== Αποτελέσματα ===== 
  
 +{{output.jpg}}
  
  
lokos.1559190922.txt.gz · Last modified: 2019/10/23 21:11 (external edit)