1 Reply Latest reply on Apr 5, 2016 12:22 AM by Flo1991

    BLE GATT Communication

    AhmedRashed93

      Hi, i am a beginner to Intel Edison and i have some questions, i am using python scripts on Edison (pygattlib) and i need to communicate with Bluetooth module(Beacon HM-11) and i need help concerning some points:

      -self.requester.write_by_handle(0x10, "AT")
      in this line of code it returns an error: RuntimeError: Characteristic value/descriptor operation failed: No attribute found within the given range
      and when i change the handle .. it sometimes give "Device is not responding" and sometimes give "Attribute cant be written" ..
      So i need someone to elaborate the types of handles

       

      All i want to do is that i want to send "AT" command to the beacon and the beacon replies by "OK" so i need to read the "OK" message
      Reading code: data = self.requester.read_by_handle(0x1)[0]
      also i don't understand the type of handle used and what to use to receive the "OK" message.

       

      Thanks for your time .