Page 1 of 1

is copy-less read operations possible for nvs blobs?

Posted: Fri Nov 01, 2019 5:07 pm
by RMandR
for aws mqtt connection, the API seems to accept only pointer memory location or fat fs paths.

What's the best way of doing this if the aws cert is not embedded in the binary and stored in NVS?

It seems like a waste memory to have to copy the certs and keys from NVS into memory before passing onto the MQTT/TLS interface.

Someone mentioned passing a pointer from the nvs blob. Is that possible?

TIA

-a

Re: is copy-less read operations possible for nvs blobs?

Posted: Sat Nov 02, 2019 1:45 am
by WiFive

Re: is copy-less read operations possible for nvs blobs?

Posted: Sat Nov 02, 2019 3:29 pm
by RMandR
@WiFive. Thanks for the pointer.