current revision

This commit is contained in:
2016-09-28 12:16:45 +02:00
parent 075d8bb633
commit d47322e73b
90 changed files with 8228 additions and 606 deletions

View File

@@ -16,6 +16,8 @@ private:
/** hidden ctor. use singleton! */
WiFiSensorAndroid() {;}
bool started = false;
public:
/** singleton access */
@@ -28,7 +30,8 @@ public:
// start scanning
int res = QAndroidJniObject::callStaticMethod<int>("indoor/java/WiFi", "start", "()I");
(void) res;
if (res != 0) {throw Exception("error while starting WiFi");}
started = true;
}
@@ -36,8 +39,12 @@ public:
throw "todo";
}
bool isRunning() const override {
return started;
}
/** called from java. handle the given incoming scan result */
void handle(const std::string& data) {
void handle(const std::string data) {
// to-be-constructed sensor data
WiFiMeasurements sensorData;