current revision
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user