Compare commits

..

1 Commits

Author SHA1 Message Date
Anatole SCHRAMM
087cf4f808 Finished to define the API, started to implement some of it 2023-04-06 14:12:29 +02:00

View File

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