Compare commits
1 Commits
087cf4f808
...
74b90f9fee
Author | SHA1 | Date | |
---|---|---|---|
|
74b90f9fee |
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user