Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bluetooth peripheral receive from a write characteristic
Forum Updated to NodeBB v4.3 + New Features

Bluetooth peripheral receive from a write characteristic

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 341 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gary Metalle
    wrote on last edited by
    #1

    I have started to add support into my Linux platform app to act as a BLE peripheral. It advertises OK and clients connect and I've even added some support for device information such as software version, serial number etc.

    I have a custom service that will simulate a serial port and has two characteristics, one for RX and another for TX. I can't see how to receive data into my app when the remote client writes to the TX characteristic?

    There are signals emitted from QLowEnergyService but these are all from when the controller is in central role, not peripheral? It feels like QLowEnergyService::characteristicWritten() would have been the obvious choice but this is fired when in central role when you have changed a char on a remote (peripheral) device, and I want something the other way around.

    QLowEnergyCharacteristic doesn't emit any signals, so it's not there either and QLowEnergyController doesn't have anything useful there either.

    There is a heartrate server sample application for using Bluetooth in peripheral mode but it only has a characteristic that is used in 'notify' mode, not one that is written from the remote client.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gary Metalle
      wrote on last edited by
      #2

      Ignore that, I should've gone back and re-read the documentation...

      characteristicChanged() is the QLowEnergyService signal that you want for this.

      1 Reply Last reply
      0
      • G Gary Metalle has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved