Add aa wifi entity detect

This commit is contained in:
hawkeyexp 2018-09-30 18:20:24 +02:00
parent 902d450e21
commit d81b2c4a69
3 changed files with 4 additions and 1 deletions

View File

@ -93,6 +93,7 @@ void App::stop()
androidAutoEntity_.reset();
}
});
}
void App::aoapDeviceHandler(aasdk::usb::DeviceHandle deviceHandle)

View File

@ -67,6 +67,7 @@ void AndroidAutoEntity::start(IAndroidAutoEntityEventHandler& eventHandler)
controlServiceChannel_->sendVersionRequest(std::move(versionRequestPromise));
controlServiceChannel_->receive(this->shared_from_this());
});
system("/opt/crankshaft/aa_device_state.sh connected &");
}
void AndroidAutoEntity::stop()
@ -81,6 +82,7 @@ void AndroidAutoEntity::stop()
transport_->stop();
cryptor_->deinit();
});
system("/opt/crankshaft/aa_device_state.sh disconnected &");
}
void AndroidAutoEntity::onVersionResponse(uint16_t majorCode, uint16_t minorCode, aasdk::proto::enums::VersionResponseStatus::Enum status)

View File

@ -2172,7 +2172,7 @@ background-color: rgba(0, 0, 0, 0);
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 0, 0, 0.5);
color: rgb(255, 255, 255);
heigth: 45px;</string>
height: 45px;</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">