components/am2301/AM2301.cpp
/**
 * Put INSTRUCTION_START into the queue.
 *
 * @return True if adding was succesful. False if not (queue full).
 */
Put INSTRUCTION_START into the queue.
@return True if adding was succesful. False if not (queue full).
Put INSTRUCTION_START into the queue . @return True if adding was succesful . False if not ( queue full ) .
bool AM2301::queue_instruction_start()
{
    ESP_LOGD(TAG, "queue_instruction_start");
    decoder_data_t data;
    data.instruction = INSTRUCTION_START;
    BaseType_t ret = xQueueSend(decoderQueue, &data, (TickType_t ) 0);
    if (ret != pdPASS) {
        ESP_LOGE(TAG, "queue_instruction_start, xQueueSend failed");
        return false;
    }
    return true;
}
bool AM2301 :: queue_instruction_start ( ) { ESP_LOGD ( TAG , " " ) ; decoder_data_t data ; data . instruction = INSTRUCTION_START ; BaseType_t ret = xQueueSend ( decoderQueue , & data , ( TickType_t ) 0 ) ; if ( ret != pdPASS ) { ESP_LOGE ( TAG , " " ) ; return false ; } return true ; }
Put INSTRUCTION_START into the queue.
Put INSTRUCTION_START into the queue .
// queue full, might recover