Android Question BLE manager.writeData

Discussion in 'Android Questions' started by Dey, Apr 25, 2019.

  1. Dey

    Dey Active Member Licensed User

    Hi everyone
    I try to write data with manager.writedata
    but I don't get any changes
    I can read them correctly, I get the requested data, I apply a small modification, I write but they don't change.
    BLE for me is a new thing
    thank you

    Code:
    dim hb(9)as byte
    hb(
    0)=0
    hb(
    1)=-43
    hb(
    2)=10 'orginal 5
    hb(3)=20
    hb(
    4)=35
    hb(
    5)=80
    hb(
    6)=0
    hb(
    7)=0
    hb(
    8)=0
    hb(
    9)=0
    manager.writeData(
    "00001554-1212-efde-1523-785feabcd123","0000155f-1212-efde-1523-785feabcd123",hb)
     
  2. emexes

    emexes Well-Known Member Licensed User

    Can you write and read back the change using nRF Connect? Many interfaces uses separate characteristics for writing and reading what looks like the same piece of information, eg:

    "In response to each write on UUID 00001524…, the device quickly sends a notification on a different bluetooth characteristic UUID = 00001525-1212-efde-1523-785feabcd123"

    from (randomly chosen example) https://community.home-assistant.io/t/radoneye-ble-interface/94962
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice