cloud test

This commit is contained in:
2020-08-26 17:28:56 +03:00
parent 3965e54e38
commit cfebf8cf23
11 changed files with 110 additions and 32 deletions

View File

@@ -2,13 +2,16 @@
int main() {
PICloudServer s("127.0.0.1:10101");
for (int i=0; i<3; ++i) {
s.open();
piCout() << "opened";
piSleep(1);
s.close();
piCout() << "closed";
piSleep(1);
}
// for (int i=0; i<3; ++i) {
// s.open();
// piCout << "opened";
// piSleep(10);
// s.close();
// piCout << "closed";
// piSleep(1);
// }
// s.open();
s.startThreadedRead();
piSleep(200);
return 0;
}