Skip to content

Parameter type enhancements for strings #961

Open
@razvanphp

Description

@razvanphp

I have a rather basic need to pass strings in between the cores via RPC, which actually represent a JSON.

I know those changes are probably meant in other repositories, but the use-case is in the context of RPC.

/Users/razvan/Library/Arduino15/packages/arduino/hardware/mbed_portenta/4.1.5/libraries/rpclib/src/rpc/msgpack/v1/object.hpp:213:7:
error: 'class arduino::String' has no member named 'msgpack_unpack'
     v.msgpack_unpack(o.convert());
     ~~^~~~~~~~~~~~~~

and

/Users/razvan/Library/Arduino15/packages/arduino/hardware/mbed_portenta/4.1.5/libraries/rpclib/src/rpc/msgpack/v1/object.hpp:213:7:
error: request for member 'msgpack_unpack' in 'v', which is of non-class type 'const char'
     v.msgpack_unpack(o.convert());
     ~~^~~~~~~~~~~~~~

It compiles with std::string tho.

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