Skip to content

DeviceType Parameter can be too long #3

Description

@TVLuke

Hi

I just noticed that in the HueBridge the variable deviceType is set by calling

String deviceType = getClass().getName();

Ans this value is then send to the Hue however, the devicetype parameter is not allowed to be longer then 40 characters (http://developers.meethue.com/4_configurationapi.html), causing an error in the completeSync method if it is indeed longer.

I have changed it to

String deviceType = getClass().getName().substring(0, 35);

which I believe to be usable way to circumvent this restriction especially for Android developers who may not see the internal error messages of the sdk (At least I have spend some hours on this).

Just wanted to mention this (in case someone else may have that problem) and as a suggestion that may ease development.

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