Fixing initialization to just create a table on the cloud side.
[iotcloud.git] / version2 / src / C / Init.C
1 #include "Table.h"
2 #include "IoTString.h"
3 #include "TimingSingleton.h"
4 #include "TransactionStatus.h"
5
6 #define NUMBER_OF_SENSORS 1
7 #define MACHINE_ID 260
8
9 int main(int numargs, char ** args) {
10         TimingSingleton * timer = TimingSingleton_getInstance();
11
12         // Setup the 2 clients
13         IoTString *baseurl = new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/");
14         IoTString * password = new IoTString("reallysecret");
15         Table * t1 = new Table(baseurl, password, MACHINE_ID, -1);
16         t1->initTable();
17         //t1->rebuild();
18         printf("T1 Ready\n");
19
20         baseurl->releaseRef();
21         password->releaseRef();
22
23         delete t1;
24 }
25