lightify-binary-protocol icon indicating copy to clipboard operation
lightify-binary-protocol copied to clipboard

Is it possible to see unpaired device?

Open nospam2k opened this issue 4 years ago • 5 comments

Right now I'm just using the following code to list devices. I have one bulb paired in the app and one new bulb. The response is:

Connection Established
Luminary{capabilities=[Switchable, Dimmable, PureWhite], on=false, luminance=100, address=xxxxxxxxxxxxxxxxxx, firmware='xxxxxxxxxxx', name='xxxxxxxxxxxxx'}

I am not seeing the unpaired bulb. Is it possible to pair without the app or should I be seeing unpaired bulbs?

  public static void main(String[] args)
  {
    StatusListener statusListener = new StatusListener() {
      @Override
      public void onConnect() {
        System.out.println("Connected");
      }

      @Override
      public void onConnectionFailed() {
        System.out.println("Connection Failed");
      }

      @Override
      public void onConnectionEstablished() {
        System.out.println("Connection Established");
      }

      @Override
      public void onConnectionLost() {
        System.out.println("Connection Lost");
      }
    };

    LightifyLink lightifyLink = new LightifyLink("192.168.0.41", statusListener);
    lightifyLink.performSearch(System.out::println);

nospam2k avatar Mar 19 '20 16:03 nospam2k