Fix examples

main
Laurent Pelecq 2 years ago
parent f662405997
commit b9b4a70801

@ -59,7 +59,7 @@ fn main() -> ClientResult<()> {
1 => {
if let Some(ch) = text.chars().next() {
println!("sending char: {}", ch);
ssip_client.push(Request::SendChar(ch))
ssip_client.push(Request::SpeakChar(ch))
}
}
_ => {

@ -11,7 +11,7 @@ fn main() -> ClientResult<()> {
.check_client_name_set()?;
// Enabling notifications
client
.enable_notification(NotificationType::All)?
.set_notification(NotificationType::All, true)?
.check_status(OK_NOTIFICATION_SET)?;
// Sending message
let msg_id = client

Loading…
Cancel
Save