IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.59k stars 491 forks source link

Why gatts_write_cmd()/gatts_signed_write_cmd() are just empty? #365

Open dhruvkakadiya opened 5 years ago

dhruvkakadiya commented 5 years ago

These 2 functions are just checking length and not doing anything. So looks like it needs to be implemented.

static void gatts_write_cmd(const uint8_t *pdu, uint16_t len, gpointer user_data)
{
    assert( len >= 3 );
    /* opcode = pdu[0]; */
    /* handle = bt_get_le16(&pdu[1]); */
}

static void gatts_signed_write_cmd(const uint8_t *pdu, uint16_t len, gpointer user_data)
{
    assert( len >= 15 );
    /* opcode = pdu[0]; */
    /* handle = bt_get_le16(&pdu[1]); */
}