try {
- counter++;
- if (counter == 10) {
- counter = 0;
- String pingTimer = Long.toString(System.currentTimeMillis());
- IoTString ipingTimer = new IoTString(pingTimer);
+ String pingTimer = Long.toString(System.currentTimeMillis());
+ IoTString ipingTimer = new IoTString(pingTimer);
- t1.update();
- t1.startTransaction();
- t1.addKV(ipingTimerKey, ipingTimer);
- t1.commitTransaction();
- }
+ t1.update();
+ t1.startTransaction();
+ t1.addKV(ipingTimerKey, ipingTimer);
+ t1.commitTransaction();
t1.update();
String pingTimerKey2 = "wemoController";
- IoTString ipingTimerKey2 = new IoTString(pingTimerKey);
+ IoTString ipingTimerKey2 = new IoTString(pingTimerKey2);
t1.createNewKey(ia1, 321);
while (true) {
try {
- counter++;
- if (counter == 10) {
- counter = 0;
+ String pingTimer = Long.toString(System.currentTimeMillis());
+ IoTString ipingTimer = new IoTString(pingTimer);
- String pingTimer = Long.toString(System.currentTimeMillis());
- IoTString ipingTimer = new IoTString(pingTimer);
-
- t1.update();
- t1.startTransaction();
- t1.addKV(ipingTimerKey, ipingTimer);
- t1.commitTransaction();
- }
+ t1.update();
+ t1.startTransaction();
+ t1.addKV(ipingTimerKey, ipingTimer);
+ t1.commitTransaction();
t1.update();