Im using esp_avrc_ct_send_passthrough_cmd() inside of a task. The problem is that the passthrough command doesn't do anything, when i make monitor and click the button the task executes but it doesn't do anything. I get this: RCCT: AVRC passthrough rsp: key_code 0x46, key_state 0
This is the task code:
Code: Select all
static void pause_task(void* arg) {
uint32_t io_num;
for(;;) {
if(xQueueReceive(gpio_evt_queue, &io_num, portMAX_DELAY)){
if(gpio_get_level(GPIO_INPUT_IO_1)==1){
printf("Pause\n");
esp_avrc_ct_send_passthrough_cmd(0,ESP_AVRC_PT_CMD_PAUSE ,ESP_AVRC_PT_CMD_STATE_PRESSED);
}
}
}
}