• @gordon, I have a question if possible.

    I am trying to make the p8 connect to the wheel, and then replicate the wheel's services and offer them, so that a phone can connect to the watch and then the wheel, like a bridge

    It is working, amazing what one can do with espruino, but I have come to a problem.

    When it comes to the phone app that I want to use, it does some checks on a list of characteristics and services it expects to find, and closes the connection if one is not there. They are not needed, but it does it anyway.

    The code that does the checks is like so:

    detected_wheel = true;
    BluetoothGattCharacteristic characteristic = service.getCharacteristic(c_uuid);
     if (characteristic == null) {
      detected_wheel = false;
      break;
    }
    

    and the services among others are those, that I cannot create.:

    <string-array name="kingsong_services">
        <item>00001800_0000_1000_8000_00805f9b34fb</item>
        <item>00001801_0000_1000_8000_00805f9b34fb</item>
        <item>0000180a_0000_1000_8000_00805f9b34fb</item>
        <item>0000fff0_0000_1000_8000_00805f9b34fb</item>
        <item>0000ffe0_0000_1000_8000_00805f9b34fb</item>
    </string-array>
    
    <string-array name="kingsong_00001800_0000_1000_8000_00805f9b34fb">
        <item>00002a00_0000_1000_8000_00805f9b34fb</item>
        <item>00002a01_0000_1000_8000_00805f9b34fb</item>
        <item>00002a02_0000_1000_8000_00805f9b34fb</item>
        <item>00002a03_0000_1000_8000_00805f9b34fb</item>
        <item>00002a04_0000_1000_8000_00805f9b34fb</item>
    </string-array>
    <string-array name="kingsong_00001801_0000_1000_8000_00805f9b34fb">
        <item>00002a05_0000_1000_8000_00805f9b34fb</item>
    </string-array>
    

    lines starting with a 'greater than' denote quoted text

    because they are on 0x1800 and 0x1801.

    The app is wheellog from github, I removed the check and compiled it and it connects fine, but It would be nice if it worked with all programs.

    Is it a dead end, of could I add the missing characteristics?

  • 'The app is wheellog from github'

    Would you mind sharing the link please so that we may follow along to assist.

About

Avatar for Robin @Robin started