Compare commits

..

1 Commits

Author SHA1 Message Date
Anatole SCHRAMM
74b90f9fee Finished to define the API, started to implement some of it 2023-04-06 14:27:05 +02:00

View File

@ -23,11 +23,11 @@ bool gadget_bridge_send_toast(gadget_bridge_toast_type_e toast_type, const char
return true;
bool to_return = true;
ble_service_send_nus_data((const uint8_t *)"{\"t\":\"", 6);
ble_service_send_nus_data((const uint8_t *)_gadget_bridge_toast_type_2_str(toast_type), strlen(_gadget_bridge_toast_type_2_str(toast_type)));
ble_service_send_nus_data((const uint8_t *)"\",\"msg\",\"", 9);
ble_service_send_nus_data((const uint8_t *)message, strlen(message));
ble_service_send_nus_data((const uint8_t *)"\"}\n", 3);
to_return &= ble_service_send_nus_data((const uint8_t *)"{\"t\":\"", 6);
to_return &= ble_service_send_nus_data((const uint8_t *)_gadget_bridge_toast_type_2_str(toast_type), strlen(_gadget_bridge_toast_type_2_str(toast_type)));
to_return &= ble_service_send_nus_data((const uint8_t *)"\",\"msg\",\"", 9);
to_return &= ble_service_send_nus_data((const uint8_t *)message, strlen(message));
to_return &= ble_service_send_nus_data((const uint8_t *)"\"}\n", 3);
return to_return;
}