Arduino/Libraries/USB_Host_Shield_2/BTD.h
/**
         * Register bluetooth dongle members/services.
         * @param  pService Pointer to BluetoothService class instance.
         * @return          The serice ID on succes or -1 on fail.
         */
Register bluetooth dongle members/services.
@param  pService Pointer to BluetoothService class instance.
@return          The serice ID on succes or -1 on fail.
Register bluetooth dongle members / services . @param pService Pointer to BluetoothService class instance . @return The serice ID on succes or - 1 on fail .
int8_t registerServiceClass(BluetoothService *pService) {
                for(uint8_t i = 0; i < BTD_NUMSERVICES; i++) {
                        if(!btService[i]) {
                                btService[i] = pService;
                                return i; 
                        }
                }
                return -1; 
        }
int8_t registerServiceClass ( BluetoothService * pService ) { for ( uint8_t i = 0 ; i < BTD_NUMSERVICES ; i ++ ) { if ( ! btService [ i ] ) { btService [ i ] = pService ; return i ; } } return -1 ; }
Register bluetooth dongle members/services.
Register bluetooth dongle members / services .
// Return ID // ErrorregisterServiceClass