Developer Terms and Conditions The Development Android development Wrong documentation [Connect to SCiO Sensor]

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43590

    Hello,

     

    I was trying to follow the documentation about how to connect to SCiO sensor with Android SDK, but the following page seems to be for iOS and not for Android, as it should be:

     

    https://dev.consumerphysics.com/category/mobile-api/android-api/creating-your-scio-app/connect-to-scio-sensor/

     

    Regards,

    #43593
    Ayelet
    Keymaster

    Hi Sacha,

     

    You are right, there is a problem with our documentation.

    We will fix this issue shortly and let you know.

     

    Ayelet,

    The Consumer Physics Team

    #43595
    Ayelet
    Keymaster

    Hi Sacha,

     

    Below is the correct code for Android:

    ScioDevice myScio = new ScioDevice(this, scioAddress);
    myScio.connect(new ScioDeviceConnectHandler() {
        @Override
        public void onConnected() {
            /* put your code for successfully connecting to the SCiO here */
            
            Log.d("DemoApp", "SCiO was connected successfully");
        }
    
        @Override
        public void onConnectFailed() {
            /* put your code for failing to connect to the SCiO here */
            
            Log.d("DemoApp", "Timeout while connecting");
        }
    });

    Ayelet

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.