cancel
Showing results for 
Search instead for 
Did you mean: 

How to send complex payload via "aci_gatt_write_without_resp"

roman_tl
Visitor

I've looked through many examples (in particular p2p client ) but I can't find any that sends payload that's made of array

 

```

uint8_t pPayload[] = {0xFF, 0x01, 0x00, 0x05, 0xAA};
uint8_t payloadLength = sizeof(pPayload);


ret = aci_gatt_write_without_resp(aP2PClientContext[index].connHandle,
                                                      aP2PClientContext[index].P2PWriteToServerCharHdle,
                                                      payloadLength,
                                                      pPayload);

```

That's the payload that worked fine when I programmed on ESP32 NimBLE but on STM32 I can't seem to make it work.

Side note: Service and Characteristics use 128bit UUID and seem to be discovered correctly

0 REPLIES 0