Skip to content
Discussion options

You must be logged in to vote

Same as how you encode the keys -- use { MP_ROM_QSTR(MP_QSTR_STRVAL), MP_ROM_QSTR(MP_QSTR_FooBar ) }

If the string can't be encoded into MP_QSTR_ then you'll either need to add it to qstrdefs.h or make a string object from a literal and point to that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jimmo
Comment options

Answer selected by Mars-CN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants