Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need examples of peripheral mode #9

Open
fengyc opened this issue Apr 12, 2020 · 3 comments
Open

Need examples of peripheral mode #9

fengyc opened this issue Apr 12, 2020 · 3 comments

Comments

@fengyc
Copy link

fengyc commented Apr 12, 2020

Is there an example of peripheral mode, I am looking for a way to start a BLE server that offers data of CPU/memory usage, runs small shell scripts, etc.

Thanks!

@schell
Copy link

schell commented Oct 24, 2020

I would appreciate this as well. I'm trying to set up my raspberry pi zero w as a bluetooth keyboard with:

    let return_classes = client.set_device_class(
        *controller,
        DeviceClass::Peripheral {
            keyboard: true,
            pointer: false,
            class: PeripheralDeviceClass::Unknown,
        },
    ).await?;

and I keep running into:

Bluez { source: CommandError { opcode: SetDeviceClass, status: InvalidParams } }

@wpd
Copy link

wpd commented Mar 2, 2021

I too would like to use this crate to implement a BLE peripheral. Is that possible?

@schell
Copy link

schell commented Mar 4, 2021

I think it's possible but difficult without already knowing a good amount about bluetooth development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants