Skip to content

get_network_rpc call gives error and only returns half of the data due to deprecated CONFIG_GOLIOTH_RPC_MAX_RESPONSE_LEN #11

@jstuewe23

Description

@jstuewe23

When issuing the "get_network_info" RPC call the web console reports RPC_OK, but only half of the modem information is present.
The serial console reports the net_info: Failed to encode value

The readme file says to set "CONFIG_GOLIOTH_RPC_MAX_RESPONSE_LEN=512" but it appears that this isn't supported in software-sdk 0.10.0 or 0.11.0 so this has to be removed to get it to compile.

It looks like software-SDK 0.10.0 and 0.11.0 hard code this value which means there is no way to support the get_network_info RPC call.
SDK7
grep -inr "uint8_t response_buf"
deps/modules/lib/golioth/net/golioth/rpc.c:175: uint8_t response_buf[CONFIG_GOLIOTH_RPC_MAX_RESPONSE_LEN];
SDK11
grep -inr "uint8_t response_buf"
deps/modules/lib/golioth-firmware-sdk/src/rpc.c:124: uint8_t response_buf[256];

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