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.
Fork of TwitterProjekat by
main.cpp
- Committer:
- 2016US_BenjaminRamic
- Date:
- 2016-05-20
- Revision:
- 1:51391e2303d7
- Parent:
- 0:510ec65bf38b
- Child:
- 2:907b2a247aaa
File content as of revision 1:51391e2303d7:
#include "mbed.h"
#include "WiFi.h"
#include "Twitter.h"
#include "string"
Serial pc(USBTX, USBRX);
int main() {
pc.baud(115200);
wait(3);
pc.printf("START\r\n");
WiFi wifi("LAB-2-13", "", &pc);
Twitter tvit (&pc);
while(1)
{
printf("Unesite poruku: (max 140 karaktera)");
tvit.unesiPoruku();
string kveri("/tvitmanijak/?q=" + tvit.urlEncode(tvit.dajPoruku()));
wifi.GetPage(kveri);
wait(2);
}
}
