AbedN 02/25/2025 03:30 PMhere's my test buffer: extern "C" {
static toit_err_t on_created(void* user_data, toit_msg_context_t* context) {
echo_service_t* echo_service = static_cast<echo_service_t*>(user_data);
echo_service->msg_context = context;
uint8_t temp[4];
int length = 4;
for(int i = 0; i < 4; i++){
temp[i] = (uint8_t) 'x' + i;
}
if (toit_msg_notify(context, 3, temp, length, true) != TOIT_OK) {
std::printf("unable to send\n");
}
return TOIT_OK;
}