Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 193 days
Matthias Schertler (innovaphone) Monday, 18 May 2020, 05:37 PM in response to Wim 4127
Re: What is the purpose of base parameter in JSON API message function
Hi Wim,

I added the parameter to the documentation. Available in the next SR.


word base

The ID of the base element of the message inside the msg structure. Pass it to the get functions of json_io to read the attributes of the message. Example:
const char * text = msg.get_string(base, "text");

BR

Matthias

← You can define your color theme preference here