Skip to content

Single core clients #12

@giafranchini

Description

@giafranchini

Hi, first of all thank you very much for the effort in this project. I am currently trying to integrate pico-ros functionalities in an zenoh-pico application running on an Arduino Mega.

Since this is a single core board, I need to compile zenoh-pico with Z_FEATURE_MULTI_THREAD=0, and so read and lease task for the client are not defined, see for example: https://github.com/eclipse-zenoh/zenoh-pico/blob/7263484566b89ce7e0f9fe3d80d7b787e3add68b/src/api/api.c#L2211-L2224, and I need to manually call zp_read and zp_send_keep_alive from my application code.

I think it would be useful to add a functionality to define if using a single-core board, and provide ways to call read and keep alive directly from pico-ros. Just as an example, in my application I added the following to picoros.c:

z_result_t picoros_send_keep_alive() {
    return zp_send_keep_alive(z_loan(s_wrapper), NULL);
}

z_result_t picoros_read() {
    return zp_read(z_loan(s_wrapper), NULL);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions