onConnected method

void onConnected (
  1. Device device
)

When a new socket connection is received, this method will be called. This method can be called multiple times for a discovered device if the device disconnects and reconnects. device contains information on the Device.

Implementation

void onConnected(Device device);