Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Feature Request] getter callback #78

@thomaspurchas

Description

@thomaspurchas

I noticed that in all the example accessories there is always some sort of polling loop updating a char value.

I think it would be good to add a getter_callback (in addition to the setter_callback) that is called when an iOS client requests a char value. Then the request can trigger a sensor poll, returning the most recent data, updating the local value, and sending any notifications.

This would also remove the need for an explicit polling loop in most cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions