BLE between particle devices: How to get acknowledge of packet received

Excellent, I appreciate your help. After a refresher course and some digging I found some other alternatives as well as one already described on the forum:

Which uses something like:
If you want a String object you’d pass a const char* to the String constructor, e.g. like this String((const char*)myByteArray); .

However I like the approach you described so once again appreciated! When I add this snippet it won't compile for me though:
if (memcmp(data, "FrontDoor, Open!", strlen(data)) == 0) {
// The strings are equal
// ...
}

ble_uart_perph.ino:46:48: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'const char*' [-fpermissive]

1 Like