UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. nilsl
    N
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 0

    nilsl

    @nilsl

    1
    Reputation
    15
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    nilsl Unfollow Follow

    Best posts made by nilsl

    • RE: Development of Bluetooth-enabled Ubuntu Touch App

      @advocatux Thanks. Yes, I was aware I have to add the "bluetooth" policy group to the .apparmor-file:

      {
          "policy_groups": ["bluetooth"],
          "policy_version": 16.04
      }
      

      However, I probably got confused: It seems that the AppArmor-configuration only gets adopted when the version number in manifest.json is increased (I don't know if this bug report is related).

      Anyway, with this .apparmor-file and after increasing the version in manifest.json, the error ("Cannot find a running Bluez") is gone.

      @Flohack
      I this case, adding

      "template": "unconfined"
      

      to the .apparmor-file did not seem to be necessary to get Bluetooth-access. Thanks for the hint about running apps as unconfined anyway.

      posted in App Development
      N
      nilsl

    Latest posts made by nilsl

    • PyQt5?

      Hello,
      Python3 is included with Ubuntu Touch and clickable offers the option "python-cmake - Python/QML App (built using CMake)" which lets you create an Ubuntu Touch app with a Python module.

      Qt5 is also available in Ubuntu Touch.

      Is it possible to use PyQt5? It seems not to be included.

      I'm particularily interested in the PyQt5.QtBluetooth Python module.

      Best regards, Nils

      posted in App Development
      N
      nilsl
    • RE: Development of Bluetooth-enabled Ubuntu Touch App

      @advocatux Thanks. Yes, I was aware I have to add the "bluetooth" policy group to the .apparmor-file:

      {
          "policy_groups": ["bluetooth"],
          "policy_version": 16.04
      }
      

      However, I probably got confused: It seems that the AppArmor-configuration only gets adopted when the version number in manifest.json is increased (I don't know if this bug report is related).

      Anyway, with this .apparmor-file and after increasing the version in manifest.json, the error ("Cannot find a running Bluez") is gone.

      @Flohack
      I this case, adding

      "template": "unconfined"
      

      to the .apparmor-file did not seem to be necessary to get Bluetooth-access. Thanks for the hint about running apps as unconfined anyway.

      posted in App Development
      N
      nilsl
    • Development of Bluetooth-enabled Ubuntu Touch App

      Dear all, I hope I'm asking this question in the right place.
      I'm trying to program a Ubuntu Touch app which needs to use the Bluetooth-capabilities of the Nexus 5 phone (currently with UT OTA-8).

      I did not find any information on bluetooth-development or any suitable example for Ubuntu Touch. Did I miss something?

      So, I started out with the clickable template "main-cpp - C++/QML App (built using Cmake with a main.cpp)". I then downloaded the QT5 Example Project BTScanner and integrated it in the clickable-template.

      Good news: My project compiles without error.
      Bad news: When I run the app with "clickable launch", this error ends up in the log

      Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
      Cannot find a running Bluez. Please check the Bluez installtion
      

      Does anyone have a hint what I am doing wrong? Is Bluetooth supposed to work a all? Is there a permission problem?

      Thank you! Best regards, Nils

      posted in App Development
      N
      nilsl