Various tweaks
* Fix bluetooth service issues when running on linux pc (experimental.) * Service factory changes to disable bluetooth and wifi (commented out) * Include boost logs library.
This commit is contained in:
parent
17d4bfbcda
commit
05a4a0a7d7
@ -88,7 +88,7 @@ endif ()
|
||||
|
||||
find_package(aap_protobuf REQUIRED)
|
||||
find_package(aasdk REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS system log OPTIONAL_COMPONENTS unit_test_framework)
|
||||
find_package(Boost REQUIRED COMPONENTS system log_setup log OPTIONAL_COMPONENTS unit_test_framework)
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
find_package(Qt5 COMPONENTS DBus Multimedia MultimediaWidgets Bluetooth Network)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
@ -19,10 +19,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <f1x/aasdk/Transport/ITransport.hpp>
|
||||
#include <f1x/aasdk/Channel/Control/IControlServiceChannel.hpp>
|
||||
#include <f1x/aasdk/Channel/Control/IControlServiceChannelEventHandler.hpp>
|
||||
#include <f1x/aasdk/Channel/AV/VideoServiceChannel.hpp>
|
||||
#include <aasdk/Transport/ITransport.hpp>
|
||||
#include <aasdk/Channel/Control/IControlServiceChannel.hpp>
|
||||
#include <aasdk/Channel/Control/IControlServiceChannelEventHandler.hpp>
|
||||
#include <aasdk/Channel/MediaSink/Video/Channel/VideoChannel.hpp>
|
||||
#include <f1x/openauto/autoapp/Configuration/IConfiguration.hpp>
|
||||
#include <f1x/openauto/autoapp/Service/IAndroidAutoEntity.hpp>
|
||||
#include <f1x/openauto/autoapp/Service/IService.hpp>
|
||||
|
@ -62,7 +62,6 @@ namespace f1x::openauto::autoapp::service {
|
||||
this->createMediaSinkServices(serviceList, messenger);
|
||||
this->createMediaSourceServices(serviceList, messenger);
|
||||
serviceList.emplace_back(this->createSensorService(messenger));
|
||||
serviceList.emplace_back(this->createBluetoothService(messenger));
|
||||
serviceList.emplace_back(this->createInputService(messenger));
|
||||
if (configuration_->getWirelessProjectionEnabled())
|
||||
{
|
||||
@ -71,7 +70,8 @@ namespace f1x::openauto::autoapp::service {
|
||||
* The btservice seems to handle connecting over bluetooth and allow AA to establish a WiFi connection for Projection
|
||||
* If WifiProjection is a legitimate service, then it seems clear it is not what we think it actually is.
|
||||
*/
|
||||
serviceList.emplace_back(this->createWifiProjectionService(messenger));
|
||||
serviceList.emplace_back(this->createBluetoothService(messenger));
|
||||
// serviceList.emplace_back(this->createWifiProjectionService(messenger));
|
||||
}
|
||||
|
||||
return serviceList;
|
||||
@ -204,7 +204,7 @@ namespace f1x::openauto::autoapp::service {
|
||||
|
||||
IService::Pointer ServiceFactory::createWifiProjectionService(aasdk::messenger::IMessenger::Pointer messenger) {
|
||||
OPENAUTO_LOG(info) << "[ServiceFactory] createWifiProjectionService()";
|
||||
return std::make_shared<wifiprojection::WifiProjectionService>(ioService_, messenger);
|
||||
return std::make_shared<wifiprojection::WifiProjectionService>(ioService_, messenger, configuration_);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ namespace f1x::openauto::btservice {
|
||||
/// Start Server listening on Address
|
||||
uint16_t AndroidBluetoothServer::start(const QBluetoothAddress &address) {
|
||||
OPENAUTO_LOG(debug) << "[AndroidBluetoothServer::start]";
|
||||
rfcommServer_->close(); // Close should always be called before listen.
|
||||
if (rfcommServer_->listen(address)) {
|
||||
|
||||
return rfcommServer_->serverPort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user