Skip to content

Public Refresh method #15

@kylehowells

Description

@kylehowells

As far as I can tell there there is no API to refresh for more lights, it is just expected the API will continue to work.

I have noticed that in practice it loses lights after long periods of time. My OSX menu bar app starts with the computer and then sits there all day and night. Eventually I've noticed it will think there are 0 lights available and sending the -allLightCollection a set power ON or OFF message does nothing.

However, opening the iOS LIFX app on my phone causes a fresh to occur and everything to suddenly be seen again. The app also has a refresh button in the left side panel at the bottom. I presume this button is calling -[LFXNetworkContext scanNetworkForLightStates] which is marked as private.

That method, or simply a stub -refresh method that just calls that method as an internal implementation detail if you wish to abstract it, needs to be made public so that 3rd party apps are capable of providing the user with a 'refresh' button if the application falls out of sync with reality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions