This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: 如何在另一个任务中发送数据

Part Number: CC2340R5

我在onoff_switch示例中创建了一个新的任务,想要通过这个新的任务实现

send_aps_payload(param);的发送,但是我发现并没有作用,应该如何操作才能在另一个任务中发送。
void *sendThread(void *arg0,zb_uint8_t param)
{
    /* Call driver init functions */
    GPIO_init();
    while (1)
    {
        // sleep(time);
        vTaskDelay(5000);
        send_aps_payload(param);
    }
}